This commit is contained in:
Anuken
2026-08-29 14:39:38 -04:00
parent 4db3cd713c
commit d16ec09793
@@ -2176,8 +2176,8 @@ abstract class BuildingComp implements Posc, Teamc, Healthc, Buildingc, Timerc,
switch(prop){
case health -> {
health = (float)Mathf.clamp(value, 0, maxHealth);
if(health <= 0f && !dead()){
Call.buildDestroyed(self());
if(health <= 0f){
if(!dead) Call.buildDestroyed(self());
}else{
healthChanged();
}