Fix loop vars

This commit is contained in:
Dean 2025-02-19 20:28:01 -08:00
parent 931fe11cc9
commit ddf3cbfefd
2 changed files with 3 additions and 3 deletions

View File

@ -1243,7 +1243,7 @@ export class SuppressAbilitiesTag extends ArenaTag {
for (const fieldPokemon of globalScene.getField()) { for (const fieldPokemon of globalScene.getField()) {
if (fieldPokemon && fieldPokemon.id !== pokemon.id) { if (fieldPokemon && fieldPokemon.id !== pokemon.id) {
[ true, false ].forEach((v) => applyOnLoseAbAttrs(fieldPokemon, v)); [ true, false ].forEach((passive) => applyOnLoseAbAttrs(fieldPokemon, passive));
} }
} }
} }
@ -1274,7 +1274,7 @@ export class SuppressAbilitiesTag extends ArenaTag {
for (const pokemon of globalScene.getField()) { for (const pokemon of globalScene.getField()) {
// There is only one pokemon with this attr on the field on removal, so its abilities are already active // There is only one pokemon with this attr on the field on removal, so its abilities are already active
if (pokemon && !pokemon.hasAbilityWithAttr(PreLeaveFieldRemoveSuppressAbilitiesSourceAbAttr, false)) { if (pokemon && !pokemon.hasAbilityWithAttr(PreLeaveFieldRemoveSuppressAbilitiesSourceAbAttr, false)) {
[ true, false ].forEach((v) => applyOnGainAbAttrs(pokemon, v)); [ true, false ].forEach((passive) => applyOnGainAbAttrs(pokemon, passive));
} }
} }
} }

View File

@ -1503,7 +1503,7 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
*/ */
public suppressAbility() { public suppressAbility() {
this.summonData.abilitySuppressed = true; this.summonData.abilitySuppressed = true;
[ true, false ].forEach((v) => applyOnLoseAbAttrs(this, v)); [ true, false ].forEach((passive) => applyOnLoseAbAttrs(this, passive));
} }
/** /**