From c1a8d5c24405b643e1fcb816c4efb921203189d9 Mon Sep 17 00:00:00 2001 From: ElMoustacho Date: Sat, 18 May 2024 14:36:10 +0300 Subject: [PATCH] Add a comment to justify arguments to damage method --- src/phases.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/phases.ts b/src/phases.ts index d52b348f150..85777c2eea6 100644 --- a/src/phases.ts +++ b/src/phases.ts @@ -2930,6 +2930,7 @@ export class PostTurnStatusEffectPhase extends PokemonPhase { break; } if (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(); }