fixed multiple issue

This commit is contained in:
jiangzhengwenjz committed 2019-07-08 06:18:58 +08:00
1 parent 0e8a731cb8
commit 122f139582
5 files changed
+8 -11

No files matched your search

+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++;