Using Battle Action constants
This commit is contained in:
+2
-2
@@ -4425,7 +4425,7 @@ static void HandleTurnActionSelectionState(void)
|
||||
RecordedBattle_ClearBattlerAction(gActiveBattler, 1);
|
||||
gBattleCommunication[gActiveBattler] = STATE_SELECTION_SCRIPT;
|
||||
*(gBattleStruct->selectionScriptFinished + gActiveBattler) = FALSE;
|
||||
gBattleBufferB[gActiveBattler][1] = 0;
|
||||
gBattleBufferB[gActiveBattler][1] = B_ACTION_USE_MOVE;
|
||||
*(gBattleStruct->stateIdAfterSelScript + gActiveBattler) = STATE_WAIT_ACTION_CHOSEN;
|
||||
return;
|
||||
}
|
||||
@@ -4553,7 +4553,7 @@ static void HandleTurnActionSelectionState(void)
|
||||
case STATE_SELECTION_SCRIPT_MAY_RUN:
|
||||
if (*(gBattleStruct->selectionScriptFinished + gActiveBattler))
|
||||
{
|
||||
if (gBattleBufferB[gActiveBattler][1] == 13)
|
||||
if (gBattleBufferB[gActiveBattler][1] == B_ACTION_NOTHING_FAINTED)
|
||||
{
|
||||
gHitMarker |= HITMARKER_RUN;
|
||||
gChosenActionByBattler[gActiveBattler] = B_ACTION_RUN;
|
||||
|
||||
Reference in New Issue
Block a user