mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-15 12:52:20 +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 {
|
||||
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 {
|
||||
|
Loading…
Reference in New Issue
Block a user