Using GET_BATTLER_SIDE and GET_BATTLER_SIDE2

This commit is contained in:
Eduardo Quezada
2022-09-03 00:28:32 -04:00
parent ff53a553bc
commit 790bdd69f8
7 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -254,7 +254,7 @@ u16 ChooseMoveAndTargetInBattlePalace(void)
else if (moveTarget == MOVE_TARGET_SELECTED)
chosenMoveId |= GetBattlePalaceTarget();
else
chosenMoveId |= (GetBattlerAtPosition(BATTLE_OPPOSITE(GetBattlerPosition(gActiveBattler) & BIT_SIDE)) << 8);
chosenMoveId |= (GetBattlerAtPosition(BATTLE_OPPOSITE(GET_BATTLER_SIDE(gActiveBattler))) << 8);
return chosenMoveId;
}