From 1d17735d05e8d1505d31d62f9284e67bf547d734 Mon Sep 17 00:00:00 2001 From: zxtej <83355748+zxtej@users.noreply.github.com> Date: Mon, 4 Nov 2024 13:17:01 +0000 Subject: [PATCH] Allow io TD shooting units --- core/src/mindustry/client/utils/AutoShoot.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/mindustry/client/utils/AutoShoot.kt b/core/src/mindustry/client/utils/AutoShoot.kt index ecb0af3078..270ea6709d 100644 --- a/core/src/mindustry/client/utils/AutoShoot.kt +++ b/core/src/mindustry/client/utils/AutoShoot.kt @@ -54,7 +54,7 @@ fun autoShoot() { if (target == null || Client.timer.get(2, 6f)) { // Acquire target FINISHME: Heal allied units? if (type.canAttack) { - val ignoreDisarmed = Server.io() + val ignoreDisarmed = Server.io() && !CustomMode.defense(); target = Units.closestEnemy(unit.team, unit.x, unit.y, unit.range()) { u -> !(ignoreDisarmed && u.disarmed) && u.checkTarget(type.targetAir, unit.type.targetGround) } } if (type.canHeal && target == null) {