Fix revive tokens not working

This commit is contained in:
Flashfyre 2023-10-31 14:44:10 -04:00
parent ca4f9297a8
commit 4b59097a85

View File

@ -2021,7 +2021,7 @@ export class FaintPhase extends PokemonPhase {
} }
if (!pokemon.isPlayer()) { if (!pokemon.isPlayer()) {
const enemyInstantReviveModifiers = this.scene.findModifiers(m => m instanceof EnemyInstantReviveChanceModifier); const enemyInstantReviveModifiers = this.scene.findModifiers(m => m instanceof EnemyInstantReviveChanceModifier, false);
for (let modifier of enemyInstantReviveModifiers) { for (let modifier of enemyInstantReviveModifiers) {
if (modifier.shouldApply([ pokemon ]) && modifier.apply([ pokemon ])) if (modifier.shouldApply([ pokemon ]) && modifier.apply([ pokemon ]))
return this.end(); return this.end();