mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-07-08 23:07:33 +07:00
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.
This commit is contained in:
@ -5,7 +5,7 @@ import mindustry.gen.*;
|
|||||||
|
|
||||||
public enum RadarTarget{
|
public enum RadarTarget{
|
||||||
any((team, other) -> true),
|
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),
|
ally((team, other) -> team == other.team),
|
||||||
player((team, other) -> other.isPlayer()),
|
player((team, other) -> other.isPlayer()),
|
||||||
attacker((pos, other) -> other.canShoot()),
|
attacker((pos, other) -> other.canShoot()),
|
||||||
|
Reference in New Issue
Block a user