summaryrefslogtreecommitdiff
path: root/src/battle_script_commands.c
diff options
context:
space:
mode:
authorKaz <kazbloxmc@gmail.com>2020-05-24 16:17:18 -0400
committerKaz <kazbloxmc@gmail.com>2020-05-24 16:17:18 -0400
commit4b894e95f85d19ad3c61b6e59ba940bffd5a5886 (patch)
tree51eeb9f02a1c671aeb12a7885da7ffb2436ce8c3 /src/battle_script_commands.c
parentdc27a171ee9b486424ee0e74a84fb9e3ffc7a40e (diff)
Someone please tell me who wrote the original attempt...
Diffstat (limited to 'src/battle_script_commands.c')
-rw-r--r--src/battle_script_commands.c5
1 files changed, 3 insertions, 2 deletions
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