Remove unnecessary gBattlerAttacker usage (#5554)
This commit is contained in:
parent
59e617b16d
commit
17614f8032
1 changed files with 3 additions and 3 deletions
|
@ -3877,11 +3877,11 @@ static void TryDoEventsBeforeFirstTurn(void)
|
|||
case FIRST_TURN_EVENTS_SWITCH_IN_ABILITIES:
|
||||
while (gBattleStruct->switchInBattlerCounter < gBattlersCount) // From fastest to slowest
|
||||
{
|
||||
gBattlerAttacker = gBattlerByTurnOrder[gBattleStruct->switchInBattlerCounter++];
|
||||
i = gBattlerByTurnOrder[gBattleStruct->switchInBattlerCounter++];
|
||||
|
||||
if (TryPrimalReversion(gBattlerAttacker))
|
||||
if (TryPrimalReversion(i))
|
||||
return;
|
||||
if (AbilityBattleEffects(ABILITYEFFECT_ON_SWITCHIN, gBattlerAttacker, 0, 0, 0) != 0)
|
||||
if (AbilityBattleEffects(ABILITYEFFECT_ON_SWITCHIN, i, 0, 0, 0) != 0)
|
||||
return;
|
||||
}
|
||||
gBattleStruct->switchInBattlerCounter = 0;
|
||||
|
|
Loading…
Reference in a new issue