mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-15 21:02:18 +02:00
Add check against faint status effect
This commit is contained in:
parent
efad0d1324
commit
5ed4150f85
@ -4033,7 +4033,9 @@ export class PostTurnResetStatusAbAttr extends PostTurnAbAttr {
|
|||||||
} else {
|
} else {
|
||||||
this.target = pokemon;
|
this.target = pokemon;
|
||||||
}
|
}
|
||||||
return !isNullOrUndefined(this.target?.status);
|
|
||||||
|
const effect = this.target?.status?.effect;
|
||||||
|
return !!effect && effect !== StatusEffect.FAINT;
|
||||||
}
|
}
|
||||||
|
|
||||||
override applyPostTurn(pokemon: Pokemon, passive: boolean, simulated: boolean, args: any[]): void {
|
override applyPostTurn(pokemon: Pokemon, passive: boolean, simulated: boolean, args: any[]): void {
|
||||||
|
Loading…
Reference in New Issue
Block a user