Update pokemon.c
This commit is contained in:
parent
f861b70fe7
commit
9b4ded46c6
1 changed files with 1 additions and 1 deletions
|
@ -2862,7 +2862,7 @@ void CalculateMonStats(struct Pokemon *mon)
|
||||||
currentHP = newMaxHP;
|
currentHP = newMaxHP;
|
||||||
else if (currentHP != 0)
|
else if (currentHP != 0)
|
||||||
//BUG: currentHP is unintentionally able to become <= 0 after the instruction below. This causes the pomeg berry glitch.
|
//BUG: currentHP is unintentionally able to become <= 0 after the instruction below. This causes the pomeg berry glitch.
|
||||||
//To fix this add another if statement after the instruction that desides what happens if currentHP <= 0.
|
//To fix this add another if statement after the instruction that sets currentHP = 1 if currentHP <= 0.
|
||||||
currentHP += newMaxHP - oldMaxHP;
|
currentHP += newMaxHP - oldMaxHP;
|
||||||
else
|
else
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue