/run local g, n, t, b, u = UnitGUID, UnitName, "target", IsInRaid() and "raid" or "party"; for i = 1, GetNumRaidMembers() 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
This is a macro that i found that is supposed to report who is not targeting my target. It doesn't work and I don't know why.
please help!
EDIT: I posted the wrong version before, this is supposed to be the MoP version of the macro.