Skip to content

Commit

Permalink
fix(UI): Potential fix for ElvUI/Plater combo
Browse files Browse the repository at this point in the history
- Plater causes health bar to be loaded as Nameplate.unitFrame.healthBar, where ElvUI loads as Nameplate.unitFrame.Health, which was causing nil errors
- To avoid this, check for Nameplate.unitFrame.Health before using it to set icon size
  • Loading branch information
Cilraaz committed May 30, 2024
1 parent e79f83a commit f2ea2e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion HeroRotation/UI.lua
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@
local NameplateIconSize = Nameplate:GetHeight() / NameplateScaler;
local HealthBar;
if HR.GUISettings.General.NamePlateIconAnchor == "Life Bar" then
if _G.ElvUI and _G.ElvUI[1].charSettings.profile.nameplates.enable then
if _G.ElvUI and _G.ElvUI[1].charSettings.profile.nameplates.enable and Nameplate.unitFrame.Health then
HealthBar = Nameplate.unitFrame.Health;
NameplateIconSize = HealthBar:GetWidth() / 3.5;
elseif _G.ShestakUI and _G.ShestakUI[2].nameplate.enable then
Expand Down

0 comments on commit f2ea2e7

Please sign in to comment.