get class spec of Enemy Unit in BG
View Single Post
12-31-12, 04:04 PM
A Pyroguard Emberseer
Join Date: Mar 2006
Also, even if you fixed the other issues, your function will never return any information about any unit other than "player" or "target" because of this (fixed formatting for readability):
if not UnitExists(unit) then unit = "player" else unit = "target" end
No matter what unit you pass to the function, it will overwrite it with "player" or "target".
Troubleshoot an addon
Turn any code into an addon
More addon resources
Need help with your code?
code! Attach or
Please don’t PM me
about addon bugs or code questions. Post a comment or forum thread instead!
View Public Profile
Send a private message to Phanx
Find More Posts by Phanx