Merge remote-tracking branch 'origin/master'

This commit is contained in:
Anuken
2023-10-23 11:18:08 -04:00
6 changed files with 11 additions and 11 deletions
+1 -1
View File
@@ -89,7 +89,7 @@ public class Units{
/** @return whether a new instance of a unit of this team can be created. */
public static boolean canCreate(Team team, UnitType type){
return team.data().countType(type) < getCap(team) && !type.isBanned();
return !type.useUnitCap || (team.data().countType(type) < getCap(team) && !type.isBanned());
}
public static int getCap(Team team){