From aa5ba1a3aa8b9a5d36d6138d5d44e0e9d3b2ee3d Mon Sep 17 00:00:00 2001 From: SoMall-dumpling <57857764+SoMall-dumpling@users.noreply.github.com> Date: Sun, 7 Aug 2022 01:29:47 +0800 Subject: [PATCH] Update FlakBulletType.java (#7313) fix erekir core unit make flak bullets explode --- core/src/mindustry/entities/bullet/FlakBulletType.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/mindustry/entities/bullet/FlakBulletType.java b/core/src/mindustry/entities/bullet/FlakBulletType.java index 3fbf88a1b0..9184527a10 100644 --- a/core/src/mindustry/entities/bullet/FlakBulletType.java +++ b/core/src/mindustry/entities/bullet/FlakBulletType.java @@ -30,7 +30,7 @@ public class FlakBulletType extends BasicBulletType{ if(b.time >= flakDelay && b.fdata >= 0 && b.timer(2, flakInterval)){ Units.nearbyEnemies(b.team, Tmp.r1.setSize(explodeRange * 2f).setCenter(b.x, b.y), unit -> { //fdata < 0 means it's primed to explode - if(b.fdata < 0f || !unit.checkTarget(collidesAir, collidesGround)) return; + if(b.fdata < 0f || !unit.checkTarget(collidesAir, collidesGround) || !unit.type.targetable) return; if(unit.within(b, explodeRange + unit.hitSize/2f)){ //mark as primed