This commit is contained in:
kittenchilly 2023-08-29 17:12:09 -05:00
parent d540eccbb1
commit 028536e2d3

View File

@ -373,13 +373,12 @@ static void PlayerPartnerHandleChooseMove(u32 battler)
// If partner can mega evolve, do it. // If partner can mega evolve, do it.
if (CanMegaEvolve(battler)) if (CanMegaEvolve(battler))
BtlController_EmitTwoReturnValues(BUFFER_B, 10, (chosenMoveId) | (RET_MEGA_EVOLUTION) | (gBattlerTarget << 8)); BtlController_EmitTwoReturnValues(BUFFER_B, 10, (chosenMoveId) | (RET_MEGA_EVOLUTION) | (gBattlerTarget << 8));
else if (CanUltraBurst(battler)) else if (CanUltraBurst(battler))
BtlController_EmitTwoReturnValues(BUFFER_B, 10, (chosenMoveId) | (RET_ULTRA_BURST) | (gBattlerTarget << 8)); BtlController_EmitTwoReturnValues(BUFFER_B, 10, (chosenMoveId) | (RET_ULTRA_BURST) | (gBattlerTarget << 8));
else else
BtlController_EmitTwoReturnValues(BUFFER_B, 10, (chosenMoveId) | (gBattlerTarget << 8)); BtlController_EmitTwoReturnValues(BUFFER_B, 10, (chosenMoveId) | (gBattlerTarget << 8));
} }
PlayerPartnerBufferExecCompleted(battler); PlayerPartnerBufferExecCompleted(battler);
} }