Thread Tools Display Modes
06-16-11, 05:41 PM   #1
Rainrider
A Firelord
AddOn Author - Click to view addons
Join Date: Nov 2008
Posts: 454
Keeping track of targettarget

Hello,

I'm working on an addon for telling on people taunting mobs away from the tank. So basicly I register CLEU and look for the SPELL_CAST_SUCCESS subevent and upon it I check for a taunt spell and whether the caster is not a tank. I need a way to report only if someone taunts off the tank so I need to know the target of the taunt receiver and check whether it is on my tank list. Just checking for targettarget upon the subevent didn't prove to be fast enough and it always returned the taunting player.

Is there some clever way to keep track of mobs changing targets?
  Reply With Quote
06-19-11, 01:19 PM   #2
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,313
Finding if a non-tank taunts is easy if you already have the GUID of the maintank (and offtank if applicable). However, it's impossible to reference to a mob that isn't being targetted by anyone as a UnitID does not exist for those mobs (other than bosses registered as Boss1, Boss2 ... BossN). Taunts are supposed to force a mob on the user by matching the aggro value of the person with the highest threat. In addition, most if not all taunts guarantee the mob to attack the user for 5 seconds or so. Such check would be unnecessary.
__________________
WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)
  Reply With Quote

WoWInterface » Developer Discussions » General Authoring Discussion » Keeping track of targettarget

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off