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>
This commit is contained in:
WillKolada 2024-05-31 11:23:56 -05:00 committed by GitHub
parent c79188e3b3
commit 5405e6532e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;
}