Don't allow to unspy a spy by clicking on itself
This commit is contained in:
committed by
abcdefg30
parent
32121a38f4
commit
f979e6da0f
@@ -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());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user