As a sidenote, where should I begin looking to determine a PlayerObject's class? I've tried searching the forums and reading quite a few useful looking posts but to no avail. Bed time now, guess I'll keep looking tomorrow =]
As a sidenote, where should I begin looking to determine a PlayerObject's class? I've tried searching the forums and reading quite a few useful looking posts but to no avail. Bed time now, guess I'll keep looking tomorrow =]
To identify the attacking units must be:
Get the flag of local players, from the Unit offset
[UNIT_FIELD_FLAGS] & 0x00080000 == if this is true, then the player has in combat.
Next you need to iteract through object linked list to find units who have same flag and his target is player GUID.
I have checked and it is working for melee mobs, I must have overlooked the fact that it isnt set for casters.
More iterating through the object list =/ I'm already reading from wow about a million times per second.