public bool IsAllyOf(int teamA, int teamB) { return teamA == teamB || GetTeam(teamB).allies.Contains(teamA); }