Fix target invalidation and reacquisition in Attack.

This commit is contained in:
Paul Chote
2019-01-13 22:19:07 +00:00
parent 616b6c8499
commit 7c52a6f498
2 changed files with 76 additions and 6 deletions

View File

@@ -80,9 +80,10 @@ namespace OpenRA.Mods.D2k.Traits
public SwallowTarget(Actor self, Target target, bool allowMovement, bool forceAttack)
: base(self, target, allowMovement, forceAttack) { }
protected override Target RecalculateTarget(Actor self)
protected override Target RecalculateTarget(Actor self, out bool targetIsHiddenActor)
{
// Worms ignore visibility, so don't need to recalculate targets
targetIsHiddenActor = false;
return target;
}
}