From d6f9926bee8e7f03f59368140e1598e990bc9f4f Mon Sep 17 00:00:00 2001 From: voloved <36523934+voloved@users.noreply.github.com> Date: Sat, 29 Apr 2023 15:03:34 -0400 Subject: [PATCH] No running from double battles --- Allow-Running-From-Trainer-Battles.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Allow-Running-From-Trainer-Battles.md b/Allow-Running-From-Trainer-Battles.md index 8a69afa..77f7f7d 100644 --- a/Allow-Running-From-Trainer-Battles.md +++ b/Allow-Running-From-Trainer-Battles.md @@ -217,7 +217,7 @@ void SwitchPartyOrder(u8 battler) && gBattleBufferB[gActiveBattler][1] == B_ACTION_RUN) { - gBattleCommunication[gActiveBattler]++; -+ if (IsTrainerCantRunFrom()) ++ if (IsTrainerCantRunFrom() || IsDoubleBattle()) + { + BattleScriptExecute(BattleScript_PrintCantRunFromTrainer); + gBattleCommunication[gActiveBattler] = STATE_BEFORE_ACTION_CHOSEN;