View Single Post
05-23-16, 10:08 AM   #34
Resike
A Pyroguard Emberseer
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 1,290
Originally Posted by zork View Post
What do you mean useless? nameplate1 is a valid unitid like target or player.
You can compare units with UnitIsUnit or by using GetNamePlateForUnit.
http://wowprogramming.com/docs/api/UnitIsUnit


Last but not least you can snapshot certain guids and match them against nameplate guids.
http://wowprogramming.com/docs/api/UnitGUID
Except UnitIsUnit("nameplate1", "target") returns false even if you are targeting the unit with nameplate1.

Whats the point of the new system, if you get an alternative unitid then you need to get its guid then compare that with the a real unitids guid?

They should add a new attribute which would return the proper unitid GetAttribute("realUnit") which would return "target"/"pet"/"raid34" etc.

Last edited by Resike : 05-23-16 at 10:16 AM.