This commit is contained in:
Anuken
2020-10-28 14:05:09 -04:00
parent e92d26b9e8
commit 68ab48a1d3
5 changed files with 9 additions and 7 deletions

View File

@@ -237,12 +237,14 @@ abstract class UnitComp implements Healthc, Physicsc, Hitboxc, Statusc, Teamc, I
@Override
public void add(){
team.data().updateCount(type, 1);
//check if over unit cap
if(count() > cap() && !spawnedByCore && !dead){
Call.unitCapDeath(self());
team.data().updateCount(type, -1);
}
}
@Override