You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bot unable to autoattack/shoot/cast spell at mob due to facing wrong direction #827
Occasionally my bot seems to have issues facing a mob.
Specifically, this seems to occur when there is a little lag which occasionally results in the bot running too far into the mob (such that the bot is standing ontop of the mob). The bot remains in combat but never actually turns to face the mob, and eventually dies.
I think a good workaround could be for the bot to periodically step back while auto attacking but I am not sure how to do that. Any idea how that could be done in the class file? I have saved the bot a couple of times by manually stepping backwards, when I happened to be at the computer and observe it do this.
I don't have a log for it but have observed this happen before on warrior, where the bot continually loops through approaching the target, but does not move as is standing on top of the mob in combat mode but too far forward.
I did not observe it as was afk but suspect a similar thing may have happened to my warlock too (log attached).
I dug into the warlock log you attached and found the cause, so #828 is merged to dev — please pull and give it another run.
Your log actually shows two separate problems, and the one your log proves is not the one you described.
What the log shows. The facing recovery was firing and failing:
13:05:58 Unable to react to ERR_BADATTACKFACING - Fast turn with Interact -422.4484ms
13:08:37 React to ERR_BADATTACKFACING - Fast turn with Interact 358.9413ms
13:10:05 Unable to react to ERR_BADATTACKFACING - Fast turn with Interact -565.7295ms
Same code, three different outcomes. Two faults compounding:
The window the bot gave the turn to settle in was the spell-queue window, capped at 400 ms, while taking one measurement costs four addon frames. Once frames get near 100 ms the first measurement eats the whole budget and the check can only ever report failure. So whether the turn "worked" was decided by addon frame rate, not by anything happening in game.
On failure it then treated "the direction changed" as success — which is true precisely while a turn is still in progress. That skipped the 180° fallback turn in exactly the state that needed it.
The [CombatGoal] Turning too fast! lines right after each error confirm it: the character was mid-spin, not stuck.
Both are fixed. You should now see a slow-turn line following every Unable to react, instead of nothing.
The warrior case you described — running past the mob and ending up standing on top of it — is a different bug, and it is also fixed in the same PR. Interact-with-target starts a run that the client finishes on its own, but the bot was re-pressing it about 2.5 times a second for the whole chase. A press landing in the last few yards restarts the run toward a mob you are already on top of, so melee walks straight through it. It now presses only when a press actually does something. Measured over a 9 minute grind, the gap between presses went from a flat ~400 ms to a median of about 1 second, with nothing under 200 ms.
To be straight with you: I have reproduced the warlock fault from your log, but the warrior one only from my own testing, since there was no log for it. If it still happens, that part may need more work.
Two notes on the report itself, so the next one is easier to act on:
The addon version field was left at the template default, so it does not tell me which version you were on. The startup lines in an unredacted log carry the real one.
Lag was a reasonable guess, but the mechanism turned out to be addon frame latency against a fixed measurement budget rather than network lag. That is why it felt intermittent.
If it recurs, the unredacted log with the startup lines plus your class profile would still help — particularly whether Turning too fast! and a negative Unable to react still appear together.
Hi @Xian55 thanks very much for looking at this. I'll take some time to digest your reply above but in the meantime please see attached for the full unredacted log.
Please note in addition to the part my warlock died I think there is a bunch of other irrelevant stuff after and possible before that event, where I think I started a new character.
Activity
Xian55 commentedon Aug 9, 2026
Gooday please upload the unredacted part of warlockded.txt its missing the startup log entries, so i don't know about your versions.
Secondly i cannot see the logs what class profile and path you are using, thus it will require more time from me to reproduce the issue.
Please upload
Xian55 commentedon Aug 9, 2026
I dug into the warlock log you attached and found the cause, so #828 is merged to
dev— please pull and give it another run.Your log actually shows two separate problems, and the one your log proves is not the one you described.
What the log shows. The facing recovery was firing and failing:
Same code, three different outcomes. Two faults compounding:
The window the bot gave the turn to settle in was the spell-queue window, capped at 400 ms, while taking one measurement costs four addon frames. Once frames get near 100 ms the first measurement eats the whole budget and the check can only ever report failure. So whether the turn "worked" was decided by addon frame rate, not by anything happening in game.
On failure it then treated "the direction changed" as success — which is true precisely while a turn is still in progress. That skipped the 180° fallback turn in exactly the state that needed it.
The
[CombatGoal] Turning too fast!lines right after each error confirm it: the character was mid-spin, not stuck.Both are fixed. You should now see a slow-turn line following every
Unable to react, instead of nothing.The warrior case you described — running past the mob and ending up standing on top of it — is a different bug, and it is also fixed in the same PR. Interact-with-target starts a run that the client finishes on its own, but the bot was re-pressing it about 2.5 times a second for the whole chase. A press landing in the last few yards restarts the run toward a mob you are already on top of, so melee walks straight through it. It now presses only when a press actually does something. Measured over a 9 minute grind, the gap between presses went from a flat ~400 ms to a median of about 1 second, with nothing under 200 ms.
To be straight with you: I have reproduced the warlock fault from your log, but the warrior one only from my own testing, since there was no log for it. If it still happens, that part may need more work.
Two notes on the report itself, so the next one is easier to act on:
If it recurs, the unredacted log with the startup lines plus your class profile would still help — particularly whether
Turning too fast!and a negativeUnable to reactstill appear together.somedaysomeday15-byte commentedon Aug 13, 2026
Hi @Xian55 thanks very much for looking at this. I'll take some time to digest your reply above but in the meantime please see attached for the full unredacted log.
warlockdeathfull.txt
Please note in addition to the part my warlock died I think there is a bunch of other irrelevant stuff after and possible before that event, where I think I started a new character.
fix(Approach): stop melee classes overshooting the mob
fix(Combat): recover from ERR_BADATTACKFACING instead of giving up