mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-11-17 03:57:38 +01:00
Fixed Retaliate timer's value decrease
I made an oopsie, basically. Thanks to Xavion#9504 for the fix.
This commit is contained in:
parent
2bd8ded9d2
commit
34fe0c54be
@ -2331,9 +2331,10 @@ u8 DoFieldEndTurnEffects(void)
|
|||||||
gBattleStruct->turnCountersTracker++;
|
gBattleStruct->turnCountersTracker++;
|
||||||
break;
|
break;
|
||||||
case ENDTURN_RETALIATE:
|
case ENDTURN_RETALIATE:
|
||||||
gActiveBattler = gBattlerByTurnOrder[gBattleStruct->turnSideTracker];
|
if (gSideTimers[0].retaliateTimer > 0)
|
||||||
if (gSideTimers[GET_BATTLER_SIDE(gActiveBattler)].retaliateTimer > 0)
|
gSideTimers[0].retaliateTimer--;
|
||||||
gSideTimers[GET_BATTLER_SIDE(gActiveBattler)].retaliateTimer--;
|
if (gSideTimers[1].retaliateTimer > 0)
|
||||||
|
gSideTimers[1].retaliateTimer--;
|
||||||
gBattleStruct->turnCountersTracker++;
|
gBattleStruct->turnCountersTracker++;
|
||||||
break;
|
break;
|
||||||
case ENDTURN_FIELD_COUNT:
|
case ENDTURN_FIELD_COUNT:
|
||||||
|
Loading…
Reference in New Issue
Block a user