Skip to content

Commit

Permalink
which turns out needs to check for unit
Browse files Browse the repository at this point in the history
  • Loading branch information
eltreum0 committed Aug 21, 2022
1 parent 49c9660 commit be826b1
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions ElvUI_EltreumUI/Init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -280,20 +280,22 @@ function ElvUI_EltreumUI:UI_ERROR_MESSAGE()
ElvUI_EltreumUI:LootText()
end

function ElvUI_EltreumUI:PLAYER_SPECIALIZATION_CHANGED()
ElvUI_EltreumUI:ClassIconsOnCharacterPanel()
if E.Retail then
ElvUI_EltreumUI:GetSpec()
ElvUI_EltreumUI:NamePlateOptions()
ElvUI_EltreumUI:Shadows()
if E.private.nameplates.enable then
ElvUI_EltreumUI:UpdateNPwithoutBar()
function ElvUI_EltreumUI:PLAYER_SPECIALIZATION_CHANGED(_, unit)
if unit == "player" then
ElvUI_EltreumUI:ClassIconsOnCharacterPanel()
if E.Retail then
ElvUI_EltreumUI:GetSpec()
ElvUI_EltreumUI:NamePlateOptions()
ElvUI_EltreumUI:Shadows()
if E.private.nameplates.enable then
ElvUI_EltreumUI:UpdateNPwithoutBar()
end
if E.db.ElvUI_EltreumUI.borders.borders then
E:Delay(2, function() ElvUI_EltreumUI:BorderAdjust() end)
E:Delay(2, function() ElvUI_EltreumUI:Borders() end)
end
E:Delay(2, function() ElvUI_EltreumUI:ShowHideBorders() end)
end
if E.db.ElvUI_EltreumUI.borders.borders then
E:Delay(2, function() ElvUI_EltreumUI:BorderAdjust() end)
E:Delay(2, function() ElvUI_EltreumUI:Borders() end)
end
E:Delay(2, function() ElvUI_EltreumUI:ShowHideBorders() end)
end
end

Expand Down

0 comments on commit be826b1

Please sign in to comment.