From 0dd3c2cb5a49931fb97e147370c71157a2b7147b Mon Sep 17 00:00:00 2001 From: Anuken Date: Fri, 18 Dec 2020 17:22:01 -0500 Subject: [PATCH] Fixed #4033 --- core/src/mindustry/entities/Damage.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/mindustry/entities/Damage.java b/core/src/mindustry/entities/Damage.java index 6151e76fea..d630c9fa37 100644 --- a/core/src/mindustry/entities/Damage.java +++ b/core/src/mindustry/entities/Damage.java @@ -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; }