Merge pull request #2466 from ghoulslash/be/slidefix
Set battler before BattleScript_TrainerSlideMsgRet
This commit is contained in:
commit
14e35a4831
1 changed files with 2 additions and 0 deletions
|
@ -9349,6 +9349,7 @@ static void Cmd_various(void)
|
|||
case VARIOUS_TRY_TRAINER_SLIDE_MSG_FIRST_OFF:
|
||||
if (ShouldDoTrainerSlide(gActiveBattler, gTrainerBattleOpponent_A, TRAINER_SLIDE_FIRST_DOWN))
|
||||
{
|
||||
gBattleScripting.battler = gActiveBattler;
|
||||
BattleScriptPush(gBattlescriptCurrInstr + 3);
|
||||
gBattlescriptCurrInstr = BattleScript_TrainerSlideMsgRet;
|
||||
return;
|
||||
|
@ -9357,6 +9358,7 @@ static void Cmd_various(void)
|
|||
case VARIOUS_TRY_TRAINER_SLIDE_MSG_LAST_ON:
|
||||
if (ShouldDoTrainerSlide(gActiveBattler, gTrainerBattleOpponent_A, TRAINER_SLIDE_LAST_SWITCHIN))
|
||||
{
|
||||
gBattleScripting.battler = gActiveBattler;
|
||||
BattleScriptPush(gBattlescriptCurrInstr + 3);
|
||||
gBattlescriptCurrInstr = BattleScript_TrainerSlideMsgRet;
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue