mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-01-30 16:11:06 +01:00
Allow player partner NPC's to mega evolve
(i.e., Steven at Mossdeep)
This commit is contained in:
parent
38b61ac5a0
commit
ee59fab143
@ -1526,7 +1526,10 @@ static void PlayerPartnerHandleChooseMove(void)
|
|||||||
gBattlerTarget = GetBattlerAtPosition(B_POSITION_OPPONENT_RIGHT);
|
gBattlerTarget = GetBattlerAtPosition(B_POSITION_OPPONENT_RIGHT);
|
||||||
}
|
}
|
||||||
|
|
||||||
BtlController_EmitTwoReturnValues(1, 10, chosenMoveId | (gBattlerTarget << 8));
|
if (CanMegaEvolve(gActiveBattler)) // If partner can mega evolve, do it.
|
||||||
|
BtlController_EmitTwoReturnValues(1, 10, (chosenMoveId) | (RET_MEGA_EVOLUTION) | (gBattlerTarget << 8));
|
||||||
|
else
|
||||||
|
BtlController_EmitTwoReturnValues(1, 10, (chosenMoveId) | (gBattlerTarget << 8));
|
||||||
PlayerPartnerBufferExecCompleted();
|
PlayerPartnerBufferExecCompleted();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user