Don't allow to unspy a spy by clicking on itself

This commit is contained in:
Thomas Christlieb
2024-01-16 16:13:11 +01:00
committed by abcdefg30
parent 32121a38f4
commit f979e6da0f

View File

@@ -304,6 +304,9 @@ namespace OpenRA.Mods.Cnc.Traits
if (!info.ValidRelationships.HasRelationship(relationship))
return false;
if (target.Equals(self))
return false;
return info.TargetTypes.Overlaps(target.GetAllTargetTypes());
}