From be0765f5ea0de1178a884d96d19f75a85e8b2f05 Mon Sep 17 00:00:00 2001 From: buthed010203 Date: Tue, 30 Mar 2021 11:58:53 -0400 Subject: [PATCH] Radar shouldn't sense derelict as enemies (#5027) Turrets no longer shoot derelict units by default, they shouldn't be sensed as enemies if this is the case. --- core/src/mindustry/logic/RadarTarget.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/mindustry/logic/RadarTarget.java b/core/src/mindustry/logic/RadarTarget.java index ddd7a1f368..c6f03c798e 100644 --- a/core/src/mindustry/logic/RadarTarget.java +++ b/core/src/mindustry/logic/RadarTarget.java @@ -5,7 +5,7 @@ import mindustry.gen.*; public enum RadarTarget{ any((team, other) -> true), - enemy((team, other) -> team != other.team), + enemy((team, other) -> team != other.team && other.team != Team.derelict), ally((team, other) -> team == other.team), player((team, other) -> other.isPlayer()), attacker((pos, other) -> other.canShoot()),