Don't attack actors that you can't see
This commit is contained in:
@@ -89,6 +89,9 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
if (self.IsDisabled())
|
if (self.IsDisabled())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
if (target.Type == TargetType.Actor && !self.Owner.CanTargetActor(target.Actor))
|
||||||
|
return false;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user