Bug documenting

This commit is contained in:
kiliwily
2020-09-12 18:43:20 +02:00
parent 58a2b62bae
commit 5c3669e0cd
4 changed files with 26 additions and 0 deletions
+2
View File
@@ -2861,6 +2861,8 @@ void CalculateMonStats(struct Pokemon *mon)
if (currentHP == 0 && oldMaxHP == 0)
currentHP = newMaxHP;
else if (currentHP != 0)
//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.
currentHP += newMaxHP - oldMaxHP;
else
return;