battle_ai_script_commands.c: -g fixes the fakematch.
This commit is contained in:
parent
5a70f99e16
commit
c724f2b809
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue