This commit is contained in:
kleeenexfeu 2021-11-20 02:12:43 +01:00 committed by GitHub
parent da20dae9c3
commit 62b31aec55
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4707,8 +4707,8 @@ static void TryChangeTurnOrder(void)
{
u8 battler1 = gBattlerByTurnOrder[i];
u8 battler2 = gBattlerByTurnOrder[j];
if (gActionsByTurnOrder[i] = B_ACTION_USE_MOVE
&& gActionsByTurnOrder[j] = B_ACTION_USE_MOVE)
if (gActionsByTurnOrder[i] == B_ACTION_USE_MOVE
&& gActionsByTurnOrder[j] == B_ACTION_USE_MOVE)
{
if (GetWhoStrikesFirst(battler1, battler2, FALSE))
SwapTurnOrder(i, j);