mirror of https://github.com/pret/pokeemerald.git
Fall through to IsRunningFromBattleImpossible logic
parent
6bce29537d
commit
0768c43020
|
@ -117,11 +117,15 @@ index 7f36cacc8f..2a25e074f6 100644
|
||||||
{
|
{
|
||||||
- BattleScriptExecute(BattleScript_PrintCantRunFromTrainer);
|
- BattleScriptExecute(BattleScript_PrintCantRunFromTrainer);
|
||||||
- gBattleCommunication[gActiveBattler] = STATE_BEFORE_ACTION_CHOSEN;
|
- gBattleCommunication[gActiveBattler] = STATE_BEFORE_ACTION_CHOSEN;
|
||||||
+ gBattleCommunication[gActiveBattler]++;
|
+ ; // Allow to passthrough to the below logic of IsRunningFromBattleImpossible
|
||||||
}
|
}
|
||||||
else if (IsRunningFromBattleImpossible() != BATTLE_RUN_SUCCESS
|
- else if (IsRunningFromBattleImpossible() != BATTLE_RUN_SUCCESS
|
||||||
|
+ if (IsRunningFromBattleImpossible() != BATTLE_RUN_SUCCESS
|
||||||
&& gBattleBufferB[gActiveBattler][1] == B_ACTION_RUN)
|
&& gBattleBufferB[gActiveBattler][1] == B_ACTION_RUN)
|
||||||
{
|
{
|
||||||
|
gSelectionBattleScripts[gActiveBattler] = BattleScript_PrintCantEscapeFromBattle;
|
||||||
|
gBattleCommunication[gActiveBattler] = STATE_SELECTION_SCRIPT;
|
||||||
|
*(gBattleStruct->selectionScriptFinished + gActiveBattler) = FALSE;
|
||||||
```
|
```
|
||||||
|
|
||||||
```diff
|
```diff
|
||||||
|
|
Loading…
Reference in New Issue