Allow player partner NPC's to mega evolve
(i.e., Steven at Mossdeep)
This commit is contained in:
parent
38b61ac5a0
commit
ee59fab143
1 changed files with 4 additions and 1 deletions
|
@ -1526,7 +1526,10 @@ static void PlayerPartnerHandleChooseMove(void)
|
|||
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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue