WoWInterface - View Single Post - Zombie buff icons on nameplates
View Single Post
05-20-16, 06:10 AM   #2
A Pyroguard Emberseer
zork's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 1,739
It can happen if they forgot to reset the aura buttons of the nameplate.

Nameplates get reused thus once onhide fires (you turn your camera and the nameplate disappears from screen) or when the related guid changes they should wipe all unit-related nameplate tables.

You may be able to fix it yourself. Hook the OnHide event of each nameplate and make sure to wipe the nameplate aura table and hide all aura buttons. Currently not sure how they handle guids.

I did something similar in WoD when I implemented aura buttons on my own nameplates for the first time:

According to:

Sth like this might do the job when called OnHide.
Lua Code:
  1. if not self.buffList then return end
  2. for key, value in next, self.buffList do
  3.   self.buffList[key]:Hide()
  4. end
What may cause the bug is that nameplates use their own buff icons and thus are not affected by CompactUnitFrame_UpdateBuffs which should trigger once a nameplate is shown.
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW) | TDMOG

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)

Last edited by zork : 05-20-16 at 06:56 AM.