From 44c8a383728c9889b055ea83ffee91605203368a Mon Sep 17 00:00:00 2001 From: ghoulslash Date: Fri, 5 Jan 2024 15:37:39 -0500 Subject: [PATCH] some pledge combo fixes --- src/battle_main.c | 2 ++ src/battle_util.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/battle_main.c b/src/battle_main.c index 1216d8dd3735..f647ae5569d1 100644 --- a/src/battle_main.c +++ b/src/battle_main.c @@ -4932,6 +4932,8 @@ static void TurnValuesCleanUp(bool8 var0) gSideStatuses[B_SIDE_OPPONENT] &= ~(SIDE_STATUS_QUICK_GUARD | SIDE_STATUS_WIDE_GUARD | SIDE_STATUS_CRAFTY_SHIELD | SIDE_STATUS_MAT_BLOCK); gSideTimers[B_SIDE_PLAYER].followmeTimer = 0; gSideTimers[B_SIDE_OPPONENT].followmeTimer = 0; + + gBattleStruct->pledgeMove = FALSE; // combined pledge move may not have been used due to a canceller } void SpecialStatusesClear(void) diff --git a/src/battle_util.c b/src/battle_util.c index ff8a7f5dc889..81a5c82d8ca7 100644 --- a/src/battle_util.c +++ b/src/battle_util.c @@ -3165,7 +3165,7 @@ u8 DoBattlerEndTurnEffects(void) gBattleStruct->turnEffectsTracker++; break; case ENDTURN_SEA_OF_FIRE_DAMAGE: - if (gSideStatuses[GetBattlerSide(battler)] & SIDE_STATUS_SEA_OF_FIRE) + if (IsBattlerAlive(battler) && gSideStatuses[GetBattlerSide(battler)] & SIDE_STATUS_SEA_OF_FIRE) { gBattleMoveDamage = gBattleMons[battler].maxHP / 8; BtlController_EmitStatusAnimation(battler, BUFFER_A, FALSE, STATUS1_BURN);