fixed multiple issue

This commit is contained in:
jiangzhengwenjz
2019-07-08 06:18:58 +08:00
parent 0e8a731cb8
commit 122f139582
5 changed files with 8 additions and 11 deletions
+1 -1
View File
@@ -100,7 +100,7 @@ s32 DoPoisonFieldEffect(void)
if (GetMonData(pokemon, MON_DATA_SANITY_HAS_SPECIES) && pokemon_ailments_get_primary(GetMonData(pokemon, MON_DATA_STATUS)) == AILMENT_PSN)
{
hp = GetMonData(pokemon, MON_DATA_HP);
if (!hp || !--hp)
if (hp == 0 || --hp == 0)
numFainted++;
SetMonData(pokemon, MON_DATA_HP, &hp);
numPoisoned++;