Add check against faint status effect

This commit is contained in:
Sirz Benjie 2025-04-09 22:52:39 -05:00
parent 787feceb14
commit bb6ff49a97
No known key found for this signature in database
GPG Key ID: 4A524B4D196C759E
1 changed files with 3 additions and 1 deletions

View File

@ -4168,7 +4168,9 @@ export class PostTurnResetStatusAbAttr extends PostTurnAbAttr {
} else {
this.target = pokemon;
}
return !Utils.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 {