From 4b894e95f85d19ad3c61b6e59ba940bffd5a5886 Mon Sep 17 00:00:00 2001 From: Kaz Date: Sun, 24 May 2020 16:17:18 -0400 Subject: Someone please tell me who wrote the original attempt... --- src/battle_script_commands.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/battle_script_commands.c') diff --git a/src/battle_script_commands.c b/src/battle_script_commands.c index 2e992e027..132de3626 100644 --- a/src/battle_script_commands.c +++ b/src/battle_script_commands.c @@ -5598,7 +5598,7 @@ static void atk24(void) HP_count += GetMonData(&gEnemyParty[i], MON_DATA_HP); } - if (!HP_count) + if (HP_count == 0) gBattleOutcome |= B_OUTCOME_WON; if (!gBattleOutcome && (gBattleTypeFlags & BATTLE_TYPE_LINK)) @@ -5630,11 +5630,12 @@ static void atk24(void) gBattlescriptCurrInstr += 5; } } - else // b 0x8020B46 + else { gBattlescriptCurrInstr += 5; } } + // b 0x8020B46 } #else NAKED -- cgit v1.2.3