mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-02-20 19:23:38 +01:00
Merge pull request #1006 from AsparagusEduardo/UsingBattleAction
Using Battle Action constants
This commit is contained in:
commit
6133c6b0af
@ -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…
x
Reference in New Issue
Block a user