Skip to content

Commit

Permalink
First attempt at fixing nameplates issues
Browse files Browse the repository at this point in the history
  • Loading branch information
greven committed Jul 27, 2019
1 parent 2962ec9 commit f392c60
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions elements/nameplates.lua
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@ local myPostChannelStop = function(self, unit, name, castID, spellID)
end

-- Target selected
local OnTargetChanged = function(self)
local OnTargetChanged = function(self, event, unit)
if (not self) then return end
self.Castbar.iconborder:Hide()
-- new target
if UnitIsUnit(self.unit, 'target') then
Expand Down Expand Up @@ -143,7 +144,7 @@ local createStyle = function(self, unit)
return
end

self:RegisterEvent('PLAYER_TARGET_CHANGED', OnTargetChanged)
-- self:RegisterEvent('PLAYER_TARGET_CHANGED', OnTargetChanged)

-- Health bar
local health = CreateFrame("StatusBar", nil, self)
Expand Down

0 comments on commit f392c60

Please sign in to comment.