Originally Posted by syncrow
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:
NamePlate#.namePlateUnitToken
NamePlate#UnitFrame.unit
NamePlate#UnitFrame:GetAttribute("unit")
returns the same value all the time.
Lua Code:
NamePlate#UnitFrame.BuffFrame.unit
NamePlate#UnitFrame.DebuffFrame.unit
Sometimes returns the proper unit like: "target", "focus", but it's mostly the same as above.