From dab0064ce4679275ade5cb1ed66c02c680562e9b Mon Sep 17 00:00:00 2001 From: Tercio Jose Date: Tue, 22 Oct 2024 20:58:14 -0300 Subject: [PATCH] Fixing an issue with UnitID being nil for some reason nad a typo --- Plater.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Plater.lua b/Plater.lua index a1487e11..4421b13b 100644 --- a/Plater.lua +++ b/Plater.lua @@ -3504,7 +3504,7 @@ Plater.AnchorNamesByPhraseId = { unitFrame.healthBar.isPerformanceUnit = nil if (Plater.PerformanceUnits[plateFrame[MEMBER_NPCID]]) then - local perfUnitData = tonumer(Plater.PerformanceUnits[plateFrame[MEMBER_NPCID]]) or 0 + local perfUnitData = tonumber(Plater.PerformanceUnits[plateFrame[MEMBER_NPCID]]) or 0 --print("perf", plateFrame[MEMBER_NPCID]) unitFrame.isPerformanceUnit = true unitFrame.isPerformanceUnitAura = bit.band(perfUnitData, platerInternal.PERF_UNIT_OVERRIDES_BIT.AURA) == 0 and true or false @@ -6965,7 +6965,7 @@ end local profile = Plater.db.profile local unitFrame = plateFrame.unitFrame - if UnitIsUnit (unitFrame [MEMBER_UNITID], "focus") then + if UnitIsUnit (unitFrame [MEMBER_UNITID] or "party69", "focus") then if profile.focus_indicator_enabled then --this is a rare call, no need to cache these values local texture = LibSharedMedia:Fetch ("statusbar", Plater.db.profile.focus_texture)