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:
parent
c79188e3b3
commit
5405e6532e
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user