mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2024-12-02 11:46: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()) {
|
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();
|
||||||
|
Loading…
Reference in New Issue
Block a user