remove spurious allowMovement parameter from ScanAndAttack
This commit is contained in:
@@ -84,7 +84,7 @@ namespace OpenRA.Mods.RA
|
|||||||
{
|
{
|
||||||
if (--scanTicks <= 0)
|
if (--scanTicks <= 0)
|
||||||
{
|
{
|
||||||
self.Trait<AutoTarget>().ScanAndAttack(self, true);
|
self.Trait<AutoTarget>().ScanAndAttack(self);
|
||||||
scanTicks = ScanInterval;
|
scanTicks = ScanInterval;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -96,11 +96,11 @@ namespace OpenRA.Mods.RA
|
|||||||
return currentTarget;
|
return currentTarget;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void ScanAndAttack(Actor self, bool allowMovement)
|
public void ScanAndAttack(Actor self)
|
||||||
{
|
{
|
||||||
var targetActor = ScanForTarget(self, null);
|
var targetActor = ScanForTarget(self, null);
|
||||||
if (targetActor != null)
|
if (targetActor != null)
|
||||||
attack.AttackTarget(Target.FromActor(targetActor), false, allowMovement && stance != UnitStance.Defend);
|
attack.AttackTarget(Target.FromActor(targetActor), false, Info.AllowMovement && stance != UnitStance.Defend);
|
||||||
}
|
}
|
||||||
|
|
||||||
Actor ChooseTarget(Actor self, float range)
|
Actor ChooseTarget(Actor self, float range)
|
||||||
|
|||||||
Reference in New Issue
Block a user