Add a comment to justify arguments to damage method

This commit is contained in:
ElMoustacho 2024-05-18 14:36:10 +03:00
parent b20839e09b
commit c1a8d5c244

View File

@ -2930,6 +2930,7 @@ export class PostTurnStatusEffectPhase extends PokemonPhase {
break; break;
} }
if (damage) { 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)); this.scene.damageNumberHandler.add(this.getPokemon(), pokemon.damage(damage, false, true));
pokemon.updateInfo(); pokemon.updateInfo();
} }