From 932e6e39f965821afbb2f6d7d3154c8d8ecb0287 Mon Sep 17 00:00:00 2001 From: ElMoustacho Date: Sun, 19 May 2024 17:10:57 +0200 Subject: [PATCH] Make status damage skip endure (#597) * Make status damage skip endure * Add a comment to justify arguments to damage method --- src/phases.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/phases.ts b/src/phases.ts index 079a53470f2..63573b28e06 100644 --- a/src/phases.ts +++ b/src/phases.ts @@ -3045,7 +3045,8 @@ export class PostTurnStatusEffectPhase extends PokemonPhase { break; } if (damage) { - this.scene.damageNumberHandler.add(this.getPokemon(), pokemon.damage(damage)); + // Set preventEndure flag to avoid pokemon surviving thanks to focus band, sturdy, endure ... + this.scene.damageNumberHandler.add(this.getPokemon(), pokemon.damage(damage, false, true)); pokemon.updateInfo(); } new CommonBattleAnim(CommonAnim.POISON + (pokemon.status.effect - 1), pokemon).play(this.scene, () => this.end());