This commit is contained in:
Anuken 2020-12-18 17:22:01 -05:00
parent 9d9cbdffd5
commit 0dd3c2cb5a

View File

@ -390,9 +390,10 @@ public class Damage{
//apply damage to entity if needed
if(tile.build != null && tile.build.team != team){
int health = (int)(tile.build.health / (tile.block().size * tile.block().size));
if(tile.build.health > 0){
tile.build.damage(scaledDamage);
scaledDamage -= (int)(tile.build.health / (tile.block().size * tile.block().size));
scaledDamage -= health;
if(scaledDamage <= 0) continue;
}