Merge pull request #2389 from AsparagusEduardo/RHH/pr/FixZMove

Fixed Z-Move not being cleared if Pokémon faints
This commit is contained in:
ghoulslash 2022-10-16 09:27:23 -04:00 committed by GitHub
commit e3f37ad825
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3303,6 +3303,11 @@ void FaintClearSetData(void)
}
}
}
// Clear Z-Move data
gBattleStruct->zmove.active = FALSE;
gBattleStruct->zmove.toBeUsed[gActiveBattler] = MOVE_NONE;
gBattleStruct->zmove.effect = EFFECT_HIT;
}
static void DoBattleIntro(void)