Skip to content

Commit

Permalink
CombatGoal sometimes missess to change target and bot becomes stuck.
Browse files Browse the repository at this point in the history
Fix it by removing !KeyboardOnly in the target change check.
  • Loading branch information
lionaneesh authored Dec 7, 2024
1 parent 7e31a1a commit a2a4b86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Core/Goals/CombatGoal.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -216,4 +216,4 @@ private Vector3 GetCorpseLocation(float distance)
{
return PointEstimator.GetPoint(playerReader.MapPos, playerReader.Direction, distance);
}
}
}

0 comments on commit a2a4b86

Please sign in to comment.