Hello,
rather a theoretical question: Right now I get all units I am in combat with by iterating over all units I get by calling EnumVisibleObjects and filter out those who target me.
Now there are some special circumstances atleast in the version of WoW I work with:
If a mob is stunned it wont have a target for the duration of the debuff. Same goes for fleeing aswell feared mobs.
One can easily overcome this by adding conditions to the function which retrieves mobs I am in combat with but isnt there a better solution?
Maybe somewhere hidden in WoW.exe theres a function which determines if a mob is in combat with me which I didnt found until now? Or is my solution really the best I can get?
Thanks in advance![]()