Fix status turns not incrementing properly
parent
379e5fe5c2
commit
036ab38923
|
|
@ -2413,6 +2413,7 @@ export class HealFromStatusAbAttr extends AbAttr {
|
||||||
if (pokemon.status.effect === this.statusEffect || pokemon.status.effect === this.statusEffect2) {
|
if (pokemon.status.effect === this.statusEffect || pokemon.status.effect === this.statusEffect2) {
|
||||||
let healAmount: integer = Math.floor(pokemon.getMaxHp()*(this.healRatio/8));
|
let healAmount: integer = Math.floor(pokemon.getMaxHp()*(this.healRatio/8));
|
||||||
pokemon.heal(healAmount);
|
pokemon.heal(healAmount);
|
||||||
|
pokemon.status.incrementTurn();
|
||||||
cancelled.value = true;
|
cancelled.value = true;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue