Skip to content

Commit

Permalink
Merge pull request #633 from lionaneesh/dev-upstream
Browse files Browse the repository at this point in the history
CombatGoal sometimes missess to change target and bot becomes stuck.
  • Loading branch information
Xian55 authored Dec 7, 2024
2 parents 7e31a1a + a2a4b86 commit 946035f
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 946035f

Please sign in to comment.