Merge remote-tracking branch 'origin/master'

This commit is contained in:
Anuken
2022-10-20 16:34:34 -04:00

View File

@@ -93,7 +93,7 @@ public class Units{
/** @return whether a new instance of a unit of this team can be created. */ /** @return whether a new instance of a unit of this team can be created. */
public static boolean canCreate(Team team, UnitType type){ public static boolean canCreate(Team team, UnitType type){
return team.data().countType(type) < getCap(team); return team.data().countType(type) < getCap(team) && !type.isBanned();
} }
public static int getCap(Team team){ public static int getCap(Team team){