Skip to content

Commit

Permalink
Allow io TD shooting units
Browse files Browse the repository at this point in the history
  • Loading branch information
zxtej committed Nov 4, 2024
1 parent 8f2e9de commit 1d17735
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/mindustry/client/utils/AutoShoot.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 1d17735

Please sign in to comment.