Fix queued move orders on Chrono Tank.
This commit is contained in:
@@ -143,8 +143,7 @@ namespace OpenRA.Mods.Cnc.Traits
|
|||||||
|
|
||||||
public bool CanTarget(Actor self, Target target, List<Actor> othersAtTarget, ref TargetModifiers modifiers, ref string cursor)
|
public bool CanTarget(Actor self, Target target, List<Actor> othersAtTarget, ref TargetModifiers modifiers, ref string cursor)
|
||||||
{
|
{
|
||||||
// TODO: When target modifiers are configurable this needs to be revisited
|
if (modifiers.HasModifier(TargetModifiers.ForceMove))
|
||||||
if (modifiers.HasModifier(TargetModifiers.ForceMove) || modifiers.HasModifier(TargetModifiers.ForceQueue))
|
|
||||||
{
|
{
|
||||||
var xy = self.World.Map.CellContaining(target.CenterPosition);
|
var xy = self.World.Map.CellContaining(target.CenterPosition);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user