From f50f9352321b4b97db36f517925ad0c59b43c3e9 Mon Sep 17 00:00:00 2001 From: Anuken Date: Sat, 12 Apr 2025 10:27:18 -0400 Subject: [PATCH] Fixed #10632 --- core/src/mindustry/entities/bullet/BulletType.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/src/mindustry/entities/bullet/BulletType.java b/core/src/mindustry/entities/bullet/BulletType.java index 6c0da0435a..112d2f3005 100644 --- a/core/src/mindustry/entities/bullet/BulletType.java +++ b/core/src/mindustry/entities/bullet/BulletType.java @@ -433,6 +433,11 @@ public class BulletType extends Content implements Cloneable{ build.heal(healPercent / 100f * build.maxHealth + healAmount); }else if(build.team != b.team && direct){ hit(b); + + if(lifesteal > 0f && b.owner instanceof Healthc o){ + float result = Math.max(Math.min(build.health, damage), 0); + o.heal(result * lifesteal); + } } handlePierce(b, initialHealth, x, y);