Fixed #2041 -- Force attack always targeted ground
Revert "Force attacks always go through, regardless of what is beneath them."
This reverts commit b2c72d6990.
This commit is contained in:
@@ -88,7 +88,7 @@ namespace OpenRA.Orders
|
|||||||
var forceAttack = mi.Modifiers.HasModifier(Modifiers.Ctrl);
|
var forceAttack = mi.Modifiers.HasModifier(Modifiers.Ctrl);
|
||||||
var forceQueue = mi.Modifiers.HasModifier(Modifiers.Shift);
|
var forceQueue = mi.Modifiers.HasModifier(Modifiers.Shift);
|
||||||
string cursor = null;
|
string cursor = null;
|
||||||
if( underCursor != null && !forceAttack )
|
if( underCursor != null )
|
||||||
if (o.Order.CanTargetActor(self, underCursor, forceAttack, forceQueue, ref cursor))
|
if (o.Order.CanTargetActor(self, underCursor, forceAttack, forceQueue, ref cursor))
|
||||||
return new UnitOrderResult( self, o.Order, o.Trait, cursor, Target.FromActor( underCursor ) );
|
return new UnitOrderResult( self, o.Order, o.Trait, cursor, Target.FromActor( underCursor ) );
|
||||||
if (o.Order.CanTargetLocation(self, xy, actorsAt, forceAttack, forceQueue, ref cursor))
|
if (o.Order.CanTargetLocation(self, xy, actorsAt, forceAttack, forceQueue, ref cursor))
|
||||||
|
|||||||
Reference in New Issue
Block a user