Merge pull request #2466 from ghoulslash/be/slidefix

Set battler before BattleScript_TrainerSlideMsgRet
This commit is contained in:
Eduardo Quezada D'Ottone 2022-11-29 22:22:19 -03:00 committed by GitHub
commit 14e35a4831
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;