Using Battle Action constants
This commit is contained in:
parent
33ecfb46e4
commit
f45336c546
2 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
|
|
|
@ -8925,7 +8925,7 @@ static void Cmd_jumpifnopursuitswitchdmg(void)
|
|||
for (i = 0; i < gBattlersCount; i++)
|
||||
{
|
||||
if (gBattlerByTurnOrder[i] == gBattlerTarget)
|
||||
gActionsByTurnOrder[i] = 11;
|
||||
gActionsByTurnOrder[i] = B_ACTION_TRY_FINISH;
|
||||
}
|
||||
|
||||
gCurrentMove = MOVE_PURSUIT;
|
||||
|
@ -10005,7 +10005,7 @@ static void Cmd_pursuitrelated(void)
|
|||
|
||||
if (gBattleTypeFlags & BATTLE_TYPE_DOUBLE
|
||||
&& !(gAbsentBattlerFlags & gBitTable[gActiveBattler])
|
||||
&& gChosenActionByBattler[gActiveBattler] == 0
|
||||
&& gChosenActionByBattler[gActiveBattler] == B_ACTION_USE_MOVE
|
||||
&& gChosenMoveByBattler[gActiveBattler] == MOVE_PURSUIT)
|
||||
{
|
||||
gActionsByTurnOrder[gActiveBattler] = 11;
|
||||
|
|
Loading…
Reference in a new issue