mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-23 00:32:28 +02:00
Fix loop vars
This commit is contained in:
parent
931fe11cc9
commit
ddf3cbfefd
@ -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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user