Skip to content

Commit

Permalink
add TryDeactivateSleepClause for sleep being cured via take heart
Browse files Browse the repository at this point in the history
  • Loading branch information
iriv24 committed Nov 11, 2024
1 parent dc84817 commit 271dcf5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/battle_script_commands.c
Original file line number Diff line number Diff line change
Expand Up @@ -14161,6 +14161,9 @@ static void Cmd_curestatuswithmove(void)

if (shouldHeal)
{
if (gBattleMons[gBattlerAttacker].status1 & STATUS1_SLEEP)
TryDeactivateSleepClause(GetBattlerSide(gBattlerAttacker), gBattlerPartyIndexes[gBattlerAttacker]);

gBattleMons[gBattlerAttacker].status1 = 0;
gBattlescriptCurrInstr = cmd->nextInstr;
BtlController_EmitSetMonData(gBattlerAttacker, BUFFER_A, REQUEST_STATUS_BATTLE, 0, sizeof(gBattleMons[gBattlerAttacker].status1), &gBattleMons[gBattlerAttacker].status1);
Expand Down

0 comments on commit 271dcf5

Please sign in to comment.