public bool IsEnemyOf(int teamA, int teamB) { return teamA != teamB && GetTeam(teamB).enemies.Contains(teamA); }