diff --git a/core/src/mindustry/entities/Damage.java b/core/src/mindustry/entities/Damage.java index ce5a51e1d8..5cf7ea0475 100644 --- a/core/src/mindustry/entities/Damage.java +++ b/core/src/mindustry/entities/Damage.java @@ -169,7 +169,9 @@ public class Damage{ }); Units.nearbyEnemies(b.team, rect, u -> { - if(u.checkTarget(b.type.collidesAir, b.type.collidesGround) && u.hittable()){ + u.hitbox(hitrect); + + if(u.checkTarget(b.type.collidesAir, b.type.collidesGround) && u.hittable() && Intersector.intersectSegmentRectangle(b.x, b.y, b.x + vec.x, b.y + vec.y, hitrect)){ distances.add(u.dst(b)); } });