summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKaz <kazbloxmc@gmail.com>2020-09-16 22:01:45 -0400
committerKaz <kazbloxmc@gmail.com>2020-09-16 22:01:45 -0400
commitc724f2b8099645daf85884895047e60e23368e4b (patch)
tree03b8355dd27b8ff36c8a3e7e958b2a8fb5e8a5ab /src
parent5a70f99e16c5c2bb1bd32672dde581054990fae5 (diff)
battle_ai_script_commands.c: -g fixes the fakematch.
Diffstat (limited to 'src')
-rw-r--r--src/battle_ai_script_commands.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/battle_ai_script_commands.c b/src/battle_ai_script_commands.c
index 032e5f407..5aef7a04f 100644
--- a/src/battle_ai_script_commands.c
+++ b/src/battle_ai_script_commands.c
@@ -616,8 +616,8 @@ static void RecordLastUsedMoveByTarget(void)
{
if (BATTLE_HISTORY->usedMoves[gBattlerTarget].moves[i] == gLastMoves[gBattlerTarget])
break;
- if (BATTLE_HISTORY->usedMoves[gBattlerTarget].moves[i] != gLastMoves[gBattlerTarget] // HACK: This redundant condition is a hack to make the asm match.
- && BATTLE_HISTORY->usedMoves[gBattlerTarget].moves[i] == MOVE_NONE)
+
+ if (BATTLE_HISTORY->usedMoves[gBattlerTarget].moves[i] == MOVE_NONE)
{
BATTLE_HISTORY->usedMoves[gBattlerTarget].moves[i] = gLastMoves[gBattlerTarget];
break;