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:
buthed010203 2021-03-30 11:58:53 -04:00 committed by GitHub
parent 1715741e37
commit be0765f5ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()),