mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-11 10:52:17 +02:00
Updated comments
This commit is contained in:
parent
033ab31658
commit
ac12f95d10
@ -2925,7 +2925,7 @@ export class PostTurnStatusEffectPhase extends PokemonPhase {
|
|||||||
switch (pokemon.status.effect) {
|
switch (pokemon.status.effect) {
|
||||||
case StatusEffect.POISON:
|
case StatusEffect.POISON:
|
||||||
case StatusEffect.TOXIC:
|
case StatusEffect.TOXIC:
|
||||||
if (pokemon.hasAbility(Abilities.POISON_HEAL)) { // Directly check here
|
if (pokemon.hasAbility(Abilities.POISON_HEAL)) { // Directly check for both ability and passives, hasAbility covers them both
|
||||||
netEffect = Math.max(pokemon.getMaxHp() >> 3, 1); // Healing logic
|
netEffect = Math.max(pokemon.getMaxHp() >> 3, 1); // Healing logic
|
||||||
this.scene.damageNumberHandler.add(pokemon, pokemon.heal(netEffect), HitResult.HEAL); // Apply healing
|
this.scene.damageNumberHandler.add(pokemon, pokemon.heal(netEffect), HitResult.HEAL); // Apply healing
|
||||||
} else {
|
} else {
|
||||||
@ -2941,7 +2941,7 @@ export class PostTurnStatusEffectPhase extends PokemonPhase {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (netEffect > 0) { // Just a check for poison to play the bubbly animation, damage moved to above
|
if (netEffect > 0) { // If poison-based damage was taken, play the corresponding animation
|
||||||
const animType = CommonAnim.POISON + (pokemon.status.effect - 1);
|
const animType = CommonAnim.POISON + (pokemon.status.effect - 1);
|
||||||
new CommonBattleAnim(animType, pokemon).play(this.scene, () => this.end());
|
new CommonBattleAnim(animType, pokemon).play(this.scene, () => this.end());
|
||||||
pokemon.updateInfo();
|
pokemon.updateInfo();
|
||||||
|
Loading…
Reference in New Issue
Block a user