Fix autoattack target flashes
This commit is contained in:
@@ -151,12 +151,12 @@ namespace OpenRA.Mods.RA
|
|||||||
|
|
||||||
public void ResolveOrder(Actor self, Order order)
|
public void ResolveOrder(Actor self, Order order)
|
||||||
{
|
{
|
||||||
if (order.OrderString == "Attack")
|
if (order.OrderString == "Attack" || order.OrderString == "AttackHold")
|
||||||
AttackTarget( Target.FromOrder( order ), order.Queued, true );
|
{
|
||||||
|
var target = Target.FromOrder(order);
|
||||||
else if(order.OrderString == "AttackHold")
|
self.SetTargetLine(target, Color.Red);
|
||||||
AttackTarget( Target.FromOrder( order ), order.Queued, false );
|
AttackTarget(target, order.Queued, order.OrderString == "Attack");
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
/* hack */
|
/* hack */
|
||||||
@@ -181,7 +181,6 @@ namespace OpenRA.Mods.RA
|
|||||||
{
|
{
|
||||||
if( !target.IsValid ) return;
|
if( !target.IsValid ) return;
|
||||||
self.QueueActivity(queued, GetAttackActivity(self, target, allowMove));
|
self.QueueActivity(queued, GetAttackActivity(self, target, allowMove));
|
||||||
self.SetTargetLine(target, Color.Red);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void ScanAndAttack(Actor self, bool allowMovement, bool holdStill)
|
public void ScanAndAttack(Actor self, bool allowMovement, bool holdStill)
|
||||||
|
|||||||
Reference in New Issue
Block a user