Add check against faint status effect

This commit is contained in:
Sirz Benjie 2025-04-09 22:52:39 -05:00
parent efad0d1324
commit 5ed4150f85
No known key found for this signature in database
GPG Key ID: 4A524B4D196C759E

View File

@ -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 {