From 5405e6532efd6ae466323a9f7ade639b1687bdb2 Mon Sep 17 00:00:00 2001 From: WillKolada <57021938+WillKolada@users.noreply.github.com> Date: Fri, 31 May 2024 11:23:56 -0500 Subject: [PATCH] Clear Dynamax data when a battler faints (#4672) * Update battle_main.c Now clears dynamax data when a battler faints * Update battle_main.c Actually call the helper function instead of only doing half of what it does. * Added new line before return Co-authored-by: Alex <93446519+AlexOn1ine@users.noreply.github.com> --------- Co-authored-by: Alex <93446519+AlexOn1ine@users.noreply.github.com> --- src/battle_main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/battle_main.c b/src/battle_main.c index 90c290c887..9fa55a3d39 100644 --- a/src/battle_main.c +++ b/src/battle_main.c @@ -3718,6 +3718,9 @@ const u8* FaintClearSetData(u32 battler) gBattleStruct->zmove.active = FALSE; gBattleStruct->zmove.toBeUsed[battler] = MOVE_NONE; gBattleStruct->zmove.effect = EFFECT_HIT; + // Clear Dynamax data + UndoDynamax(battler); + return result; }