Thread: all targeted?
View Single Post
08-20-12, 09:49 PM   #2
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
I don't know of any dedicated addons for that purpose, but you could use any of the numerous tooltip addons that show you which group members are targeting the unit (eg. mouse over a unit nobody should be hitting, and see who is targeting it), or a combat meter addon showing damage taken by NPCs.

Or, here is a macro that will tell you which raid members are targeting a unit they can attack that is not the same as your target:
Code:
/run local g, n, t, u = UnitGUID, UnitName, "target"; for i = 1, GetNumRaidMembers() do u = "raid"..i; if g(u..t) ~= g(t) and UnitCanAttack(u, u..t) then print(n(u), "is targeting", n(u..t)) end end
If you want to use it in parties, change GetNumRaidMembers to GetNumPartyMembers and "raid" to "party".

MoP version:
Code:
/run local g, n, t, b, u = UnitGUID, UnitName, "target", IsInRaid() and "raid" or "party"; for i = 1, GetNumGroupMembers() do u = b..i; if g(u..t) ~= g(t) and UnitCanAttack(u, u..t) then print(n(u), "is targeting", n(u..t)) end end
You'll get false positives if you have an offtank holding another mob, or something, but it shouldn't report healers since it checks to make sure that the target is attackable before reporting.
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.

Last edited by Phanx : 09-05-12 at 08:06 PM.
  Reply With Quote