I'm getting this issue quite often recently in areas where NPCs fighting each other, like Townlong Steppes. Bot will get stucked when it gets threat on a fighting mob but the mob doesn't attack the bot, it will keep spamming "Approaching <nodename>", but never moves probably because it can't mount/shapeshift to flight form in combat.
I think there are two problems combined:
1) For some odd reason, when the bot gets aggro from some patrolling mob, instead of targeting that mob it got aggro from, it randomly starts attacking any mob nearby, that is in fight with another NPC (very common in Townlong Steppes and you in fact need to do them some damage, otherwise they'll keep you in combat but never attack you). My theory on this is that this issue might be related to the COMBAT_LOG_EVENT_UNFILTERED messages, where the bots attacks a target that produces any general combat message, not just the ones bot is attacked by. Leads to problem 2:
2) If it happens to get threat on multiple mobs, but none other will attack the bot and therefore isn't set as it's current target, it will idle away being stucked in combat with no mob targetted, not fighting anybody, and just spamming that approaching message unable to mount/switch flight form.
Let me explain the timeline for log attached:
1) my toon got to a ghost iron deposit and got aggro from Kor'thik Chitinel mob wandering nearby (that's what I saw on the screen)
2) bot switches to cat form
3) aggro was detected but nothing was targeted (that Chitinel didn't hit bot yet), so the bot targeted a Kor'thik Havoc that was fighting NPC 40yd away, not the Chitinel, and applies Faerie Fire
in logs: "Current target is invalid. Switching to Kor'thik Havoc!"
4) at this moment I intervented and manually targeted either the attacking Chitinel or his pet Scorpid, not sure which one
5) bot kills both
6) tries to approach a new ghost iron deposit, but is still stuck in combat with the Kor'thik Havoc it applied Faerie Fire on (this mob is busy fighting a NPC and never attacks the bot, and the bot never attacks him because it doesn't get aggro)
Just to prevent any misunderstanding:
having threat - being in the threat table, but not necessarily on the top of the table (not having aggro)
having aggro - being on the top of the threat table and therefore being immediately attacked
A note: I was able to drop threat using Shadowmeld, which immedialety made the bot continue running. It's not in the log though.
I think there are two problems combined:
1) For some odd reason, when the bot gets aggro from some patrolling mob, instead of targeting that mob it got aggro from, it randomly starts attacking any mob nearby, that is in fight with another NPC (very common in Townlong Steppes and you in fact need to do them some damage, otherwise they'll keep you in combat but never attack you). My theory on this is that this issue might be related to the COMBAT_LOG_EVENT_UNFILTERED messages, where the bots attacks a target that produces any general combat message, not just the ones bot is attacked by. Leads to problem 2:
2) If it happens to get threat on multiple mobs, but none other will attack the bot and therefore isn't set as it's current target, it will idle away being stucked in combat with no mob targetted, not fighting anybody, and just spamming that approaching message unable to mount/switch flight form.
Let me explain the timeline for log attached:
1) my toon got to a ghost iron deposit and got aggro from Kor'thik Chitinel mob wandering nearby (that's what I saw on the screen)
2) bot switches to cat form
3) aggro was detected but nothing was targeted (that Chitinel didn't hit bot yet), so the bot targeted a Kor'thik Havoc that was fighting NPC 40yd away, not the Chitinel, and applies Faerie Fire
in logs: "Current target is invalid. Switching to Kor'thik Havoc!"
4) at this moment I intervented and manually targeted either the attacking Chitinel or his pet Scorpid, not sure which one
5) bot kills both
6) tries to approach a new ghost iron deposit, but is still stuck in combat with the Kor'thik Havoc it applied Faerie Fire on (this mob is busy fighting a NPC and never attacks the bot, and the bot never attacks him because it doesn't get aggro)
Just to prevent any misunderstanding:
having threat - being in the threat table, but not necessarily on the top of the table (not having aggro)
having aggro - being on the top of the threat table and therefore being immediately attacked
A note: I was able to drop threat using Shadowmeld, which immedialety made the bot continue running. It's not in the log though.