diff options
author | kiliwily <69381603+kiliwily@users.noreply.github.com> | 2020-09-12 19:20:42 +0200 |
---|---|---|
committer | kiliwily <69381603+kiliwily@users.noreply.github.com> | 2020-09-12 19:20:42 +0200 |
commit | 9b4ded46c6b736a39bc15cf2e6325176ad50c8de (patch) | |
tree | 27a89e14c174df5e2ba4b7b7180629dd9bfa81d4 /src | |
parent | f861b70fe74d064ab7f476ed5a3d0f2d3415c1a6 (diff) |
Update pokemon.c
Diffstat (limited to 'src')
-rw-r--r-- | src/pokemon.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pokemon.c b/src/pokemon.c index f706e8ef8..b6bec0329 100644 --- a/src/pokemon.c +++ b/src/pokemon.c @@ -2862,7 +2862,7 @@ void CalculateMonStats(struct Pokemon *mon) 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. + //To fix this add another if statement after the instruction that sets currentHP = 1 if currentHP <= 0. currentHP += newMaxHP - oldMaxHP; else return; |