Update ability.ts to stop using type enum

This commit is contained in:
JSLveil 2024-10-14 22:31:26 -07:00 committed by GitHub
parent 114d037aab
commit 58060dd29f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -446,7 +446,7 @@ class TypeImmunityAddBattlerTagAbAttr extends TypeImmunityAbAttr {
if (!simulated) {
if (!pokemon.getTag(this.tagType)) {
pokemon.addTag(this.tagType, this.turnCount, undefined, pokemon.id);
pokemon.scene.queueMessage(i18next.t("abilityTriggers:flashFire", { pokemonNameWithAffix: getPokemonNameWithAffix(pokemon), typeName: Type[attacker.getMoveType(move)].charAt(0).toUpperCase() + Type[attacker.getMoveType(move)].slice(1).toLowerCase() }));
pokemon.scene.queueMessage(i18next.t("abilityTriggers:flashFire", { pokemonNameWithAffix: getPokemonNameWithAffix(pokemon), typeName: typeName: i18next.t(`pokemonInfo:Type.${Type[attacker.getMoveType(move)]}`) }));
} else {
pokemon.scene.queueMessage(i18next.t("abilityTriggers:moveImmunity", { pokemonNameWithAffix: getPokemonNameWithAffix(pokemon) }));
}