View Single Post
05-23-16, 11:59 AM   #44
Resike
A Pyroguard Emberseer
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 1,290
Originally Posted by syncrow View Post
Its not broken, its intented and has to be dynamic!

To always get the correct unitID for the specific plate you need to check its variable .namePlateUnitToken which reflects the unitID

You might have to update certained things manually whenever a nameplate is shown via "NAME_PLATE_UNIT_ADDED"
It doesn't matter:

Lua Code:
  1. NamePlate#.namePlateUnitToken
  2. NamePlate#UnitFrame.unit
  3. NamePlate#UnitFrame:GetAttribute("unit")

returns the same value all the time.

Lua Code:
  1. NamePlate#UnitFrame.BuffFrame.unit
  2. NamePlate#UnitFrame.DebuffFrame.unit

Sometimes returns the proper unit like: "target", "focus", but it's mostly the same as above.

Last edited by Resike : 05-23-16 at 12:09 PM.