From 41219be32bbfc08a8d603035c6e67d8bd1651d0a Mon Sep 17 00:00:00 2001 From: Fabio1988 Date: Fri, 19 Dec 2025 17:41:39 +0100 Subject: [PATCH] fix: mega z evo_5 --- src/classes/Translations.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/classes/Translations.ts b/src/classes/Translations.ts index b7f38f3..8a8e5f8 100644 --- a/src/classes/Translations.ts +++ b/src/classes/Translations.ts @@ -936,14 +936,14 @@ export default class Translations extends Masterfile { !Object.prototype.hasOwnProperty.call( Rpc.HoloTemporaryEvolutionId, 'TEMP_EVOLUTION_MEGA_Z', - ) && - !this.parsedTranslations[locale].misc[ - `${this.options.prefix.evolutions}5` - ] + ) ) { - this.parsedTranslations[locale].misc[ - `${this.options.prefix.evolutions}5` - ] = this.capitalize('MEGA_Z') + const evo5Key = `${this.options.prefix.evolutions}5` + if (!this.parsedTranslations[locale].misc[evo5Key]) { + this.parsedTranslations[locale].misc[evo5Key] = this.capitalize( + 'MEGA_Z', + ) + } } Object.entries(Rpc.PokemonDisplayProto.Alignment).forEach((proto) => { const [name, id] = proto