Only support move orders against terrain targets.
This commit is contained in:
@@ -709,7 +709,7 @@ namespace OpenRA.Mods.Common.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)
|
||||||
{
|
{
|
||||||
if (rejectMove || !target.IsValidFor(self))
|
if (rejectMove || target.Type != TargetType.Terrain)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
var location = self.World.Map.CellContaining(target.CenterPosition);
|
var location = self.World.Map.CellContaining(target.CenterPosition);
|
||||||
|
|||||||
Reference in New Issue
Block a user