Only support move orders against terrain targets.

This commit is contained in:
Paul Chote
2015-11-26 18:38:10 +00:00
parent 756bec69b3
commit 373bfefc6c

View File

@@ -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)
{
if (rejectMove || !target.IsValidFor(self))
if (rejectMove || target.Type != TargetType.Terrain)
return false;
var location = self.World.Map.CellContaining(target.CenterPosition);