This commit is contained in:
Anuken
2020-08-05 09:59:50 -04:00
parent 54d37b63b3
commit f4a838df98
2 changed files with 8 additions and 10 deletions

View File

@@ -252,6 +252,14 @@ abstract class UnitComp implements Healthc, Physicsc, Hitboxc, Statusc, Teamc, I
if(floor.damageTaken > 0f){
damageContinuous(floor.damageTaken);
}
if(!net.client() && tile.solid()){
if(type.canBoost){
elevation = 1f;
}else{
kill();
}
}
}
//AI only updates on the server