Validate order targets when resolving orders.
This commit is contained in:
@@ -128,6 +128,9 @@ namespace OpenRA.Mods.Common.Traits
|
||||
if (order.OrderString != OrderID)
|
||||
return;
|
||||
|
||||
if (!order.Target.IsValidFor(self))
|
||||
return;
|
||||
|
||||
if (!order.Queued)
|
||||
Path.Clear();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user