Skip to content

Commit

Permalink
Clear Dynamax data when a battler faints (#4672)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>

---------

Co-authored-by: Alex <[email protected]>
  • Loading branch information
WillKolada and AlexOn1ine authored May 31, 2024
1 parent c79188e commit 5405e65
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/battle_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 5405e65

Please sign in to comment.