Merge IOrderTargeter.CanTargetActor and CanTargetLocation.
This commit is contained in:
@@ -96,9 +96,6 @@ namespace OpenRA.Mods.RA
|
||||
|
||||
public override bool CanTargetActor(Actor self, Actor target, TargetModifiers modifiers, ref string cursor)
|
||||
{
|
||||
if (!base.CanTargetActor(self, target, modifiers, ref cursor))
|
||||
return false;
|
||||
|
||||
var canTargetActor = useCaptureCursor(target);
|
||||
cursor = canTargetActor ? "ability" : "move-blocked";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user