mirror of
https://github.com/pret/pokeemerald.git
synced 2026-08-28 05:31:11 -05:00
Fix AI party count calc being maintained between tests (#7200)
This commit is contained in:
@@ -583,6 +583,12 @@ static void CB2_InitBattleInternal(void)
|
||||
TryFormChange(i, B_SIDE_OPPONENT, FORM_CHANGE_BEGIN_BATTLE);
|
||||
}
|
||||
|
||||
if (TESTING)
|
||||
{
|
||||
gPlayerPartyCount = CalculatePartyCount(gPlayerParty);
|
||||
gEnemyPartyCount = CalculatePartyCount(gEnemyParty);
|
||||
}
|
||||
|
||||
gBattleCommunication[MULTIUSE_STATE] = 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user