Fix typos

This commit is contained in:
kiliwily committed 2020-09-19 20:46:26 +02:00
1 parent 56848fb891
commit f1366dfc69
2 files changed
+6 -6

No files matched your search

+2 -2
View File
@@ -2861,8 +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 sets currentHP = 1 if currentHP <= 0.
// BUG: currentHP is unintentionally able to become <= 0 after the instruction below. This causes the pomeg berry glitch.
// To fix that set currentHP = 1 if currentHP <= 0.
currentHP += newMaxHP - oldMaxHP;
else
return;