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