Fixed instances of gSideTimers not using side constants (#2867)
This commit is contained in:
commit
dd99cb6da8
1 changed files with 2 additions and 2 deletions
|
@ -3923,14 +3923,14 @@ static void Cmd_tryfaintmon(void)
|
||||||
if (gBattleResults.playerFaintCounter < 255)
|
if (gBattleResults.playerFaintCounter < 255)
|
||||||
gBattleResults.playerFaintCounter++;
|
gBattleResults.playerFaintCounter++;
|
||||||
AdjustFriendshipOnBattleFaint(gActiveBattler);
|
AdjustFriendshipOnBattleFaint(gActiveBattler);
|
||||||
gSideTimers[0].retaliateTimer = 2;
|
gSideTimers[B_SIDE_PLAYER].retaliateTimer = 2;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (gBattleResults.opponentFaintCounter < 255)
|
if (gBattleResults.opponentFaintCounter < 255)
|
||||||
gBattleResults.opponentFaintCounter++;
|
gBattleResults.opponentFaintCounter++;
|
||||||
gBattleResults.lastOpponentSpecies = GetMonData(&gEnemyParty[gBattlerPartyIndexes[gActiveBattler]], MON_DATA_SPECIES, NULL);
|
gBattleResults.lastOpponentSpecies = GetMonData(&gEnemyParty[gBattlerPartyIndexes[gActiveBattler]], MON_DATA_SPECIES, NULL);
|
||||||
gSideTimers[1].retaliateTimer = 2;
|
gSideTimers[B_SIDE_OPPONENT].retaliateTimer = 2;
|
||||||
}
|
}
|
||||||
if ((gHitMarker & HITMARKER_DESTINYBOND) && gBattleMons[gBattlerAttacker].hp != 0)
|
if ((gHitMarker & HITMARKER_DESTINYBOND) && gBattleMons[gBattlerAttacker].hp != 0)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue