Fixed crux units being deactivated in sandbox

This commit is contained in:
Anuken
2020-08-16 10:13:33 -04:00
parent 2526224820
commit 8234eec7fc
3 changed files with 5 additions and 5 deletions

View File

@@ -36,7 +36,7 @@ public class Units{
public static int getCap(Team team){
//wave team has no cap
if((team == state.rules.waveTeam && state.rules.waves) || (state.isCampaign() && team == state.rules.waveTeam)){
if((team == state.rules.waveTeam && !state.rules.pvp) || (state.isCampaign() && team == state.rules.waveTeam)){
return Integer.MAX_VALUE;
}
return state.rules.unitCap + indexer.getExtraUnits(team);