WoWInterface - View Single Post - Class icons on nameplates
View Single Post
08-21-18, 09:59 AM   #3
A Frostmaul Preserver
AddOn Author - Click to view addons
Join Date: Jun 2016
Posts: 256
You're running :Hide() on the nameplate itself, why?
The nameplate already disappears when unit is removed, that part is redundant, and you're not actually hiding the iconframe. Meaning, once the nameplate gets reassigned to a different unit, it is still anchored to it and will still appear, even if the character is of the wrong class.

[I wrote a thing here that I realized would not work, edited out]

Also, not related to the functionality of your code, but you are creating a new frame every time a nameplate appears. You should only create one per nameplate. Efficiency reasons.

Last edited by Ammako : 08-21-18 at 10:05 AM.
  Reply With Quote