AttackBase handles canceling of (its) target when an unrelated order is issued
This commit is contained in:
@@ -56,10 +56,6 @@ namespace OpenRa.Game.Traits
|
||||
{
|
||||
self.CancelActivity();
|
||||
self.QueueActivity(new Activities.Move(order.TargetLocation, 8));
|
||||
|
||||
var attackBase = self.traits.WithInterface<AttackBase>().FirstOrDefault();
|
||||
if (attackBase != null)
|
||||
attackBase.target = null; /* move cancels attack order */
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user