mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2024-11-26 16:56:11 +00:00
Fix revive tokens not working
This commit is contained in:
parent
ca4f9297a8
commit
4b59097a85
@ -2021,7 +2021,7 @@ export class FaintPhase extends PokemonPhase {
|
||||
}
|
||||
|
||||
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) {
|
||||
if (modifier.shouldApply([ pokemon ]) && modifier.apply([ pokemon ]))
|
||||
return this.end();
|
||||
|
Loading…
Reference in New Issue
Block a user