From a2a4b86fbb778b1482fff0a89f9df2db51a6646c Mon Sep 17 00:00:00 2001 From: Aneesh Dogra Date: Sat, 7 Dec 2024 07:46:50 +0100 Subject: [PATCH] CombatGoal sometimes missess to change target and bot becomes stuck. Fix it by removing !KeyboardOnly in the target change check. --- Core/Goals/CombatGoal.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Core/Goals/CombatGoal.cs b/Core/Goals/CombatGoal.cs index 5d37fd34..b4b4e1ae 100644 --- a/Core/Goals/CombatGoal.cs +++ b/Core/Goals/CombatGoal.cs @@ -157,7 +157,7 @@ public override void Update() { logger.LogInformation("Lost target!"); - if (combatLog.DamageTakenCount() > 0 && !input.KeyboardOnly) + if (combatLog.DamageTakenCount() > 0) { stopMoving.Stop(); FindNewTarget(); @@ -216,4 +216,4 @@ private Vector3 GetCorpseLocation(float distance) { return PointEstimator.GetPoint(playerReader.MapPos, playerReader.Direction, distance); } -} \ No newline at end of file +}