Skip to content

Commit

Permalink
Core: CombatGoal: Clear potential stuck dead target after possible th…
Browse files Browse the repository at this point in the history
…reat could be detected.
  • Loading branch information
Xian55 committed Jan 11, 2025
1 parent 50c2ff8 commit 11d6efc
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Core/Goals/CombatGoal.cs
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,13 @@ public override void Update()

if (combatLog.DamageTakenCount() > 0)
{
if (bits.Target() && bits.Target_Dead())
{
logger.LogInformation("Clear current dead target!");
input.PressClearTarget();
wait.Update();
}

logger.LogWarning("Search Possible Threats!");
stopMoving.Stop();

Expand All @@ -165,6 +172,7 @@ public override void Update()
else
{
input.PressClearTarget();
wait.Update();
}
}
}
Expand Down

0 comments on commit 11d6efc

Please sign in to comment.