Fix attack behaviour of disabled units.

This commit is contained in:
Lars Beckers
2019-03-30 14:46:17 +00:00
committed by reaperrr
parent 1bb319425b
commit e6750bf19c
4 changed files with 21 additions and 7 deletions

View File

@@ -142,7 +142,7 @@ namespace OpenRA.Mods.Common.Traits
return coords.Value.LocalToWorld(p.Offset.Rotate(bodyOrientation));
}
public override void DoAttack(Actor self, Target target, IEnumerable<Armament> armaments = null)
public override void DoAttack(Actor self, Target target)
{
if (!CanAttack(self, target))
return;