mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2024-11-26 16:56:11 +00:00
Make status damage skip endure (#597)
* Make status damage skip endure * Add a comment to justify arguments to damage method
This commit is contained in:
parent
608a968db4
commit
932e6e39f9
@ -3045,7 +3045,8 @@ export class PostTurnStatusEffectPhase extends PokemonPhase {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (damage) {
|
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();
|
pokemon.updateInfo();
|
||||||
}
|
}
|
||||||
new CommonBattleAnim(CommonAnim.POISON + (pokemon.status.effect - 1), pokemon).play(this.scene, () => this.end());
|
new CommonBattleAnim(CommonAnim.POISON + (pokemon.status.effect - 1), pokemon).play(this.scene, () => this.end());
|
||||||
|
Loading…
Reference in New Issue
Block a user