diff --git a/OpenRA.Mods.Common/Activities/Hunt.cs b/OpenRA.Mods.Common/Activities/Hunt.cs index 7875ec0c10..e4d02b8370 100644 --- a/OpenRA.Mods.Common/Activities/Hunt.cs +++ b/OpenRA.Mods.Common/Activities/Hunt.cs @@ -40,14 +40,8 @@ namespace OpenRA.Mods.Common.Activities if (targetActor == null) return false; - var target = Target.FromActor(targetActor); - var range = self.TraitsImplementing().Max(ab => ab.GetMaximumRangeVersusTarget(target)); - - // We want to keep at least 2 cells of distance from the target to prevent the pathfinder from thinking the target position is blocked. - if (range.Length < 2048) - range = WDist.FromCells(2); - - QueueChild(new AttackMoveActivity(self, () => move.MoveWithinRange(Target.FromCell(self.World, targetActor.Location), range))); + // We want to keep 2 cells of distance from the target to prevent the pathfinder from thinking the target position is blocked. + QueueChild(new AttackMoveActivity(self, () => move.MoveWithinRange(Target.FromCell(self.World, targetActor.Location), WDist.FromCells(2)))); QueueChild(new Wait(25)); return false; } diff --git a/OpenRA.Mods.Common/Scripting/Properties/CombatProperties.cs b/OpenRA.Mods.Common/Scripting/Properties/CombatProperties.cs index 397290c49f..bee9368ed4 100644 --- a/OpenRA.Mods.Common/Scripting/Properties/CombatProperties.cs +++ b/OpenRA.Mods.Common/Scripting/Properties/CombatProperties.cs @@ -31,7 +31,7 @@ namespace OpenRA.Mods.Common.Scripting } [ScriptActorPropertyActivity] - [Desc("Seek out and attack nearby targets.")] + [Desc("Ignoring visibility, find the closest hostile target and attack move to within 2 cells of it.")] public void Hunt() { Self.QueueActivity(new Hunt(Self));