Fix AI party count calc being maintained between tests (#7200)

This commit is contained in:
Eduardo Quezada
2025-06-24 15:03:54 -04:00
committed by GitHub
parent 74326023da
commit b372fa30b6

View File

@@ -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;
}