From 3922d9879e75f6d275213039236f2230bdc2c02f Mon Sep 17 00:00:00 2001 From: Meow <30401521+me0wg4ming@users.noreply.github.com> Date: Mon, 2 Mar 2026 19:13:45 +0100 Subject: [PATCH] fixed typos and cleaned up comments --- api/unitframes.lua | 4 ++-- libs/libdebuff.lua | 4 ++-- modules/nameplates.lua | 2 +- modules/nampower.lua | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/api/unitframes.lua b/api/unitframes.lua index 7edbd6da..d01cdeb9 100644 --- a/api/unitframes.lua +++ b/api/unitframes.lua @@ -1703,7 +1703,7 @@ end function pfUI.uf.OnEnter() if not this.label then return end - -- Nampower/SuperWoW: Set native mouseover unit for macro/addon compatibility + -- Nampower: Set native mouseover unit for macro/addon compatibility if SetMouseoverUnit then local unitstr = this.label .. this.id -- For GUID-based frames (focus), use the GUID directly @@ -1721,7 +1721,7 @@ function pfUI.uf.OnEnter() end function pfUI.uf.OnLeave() - -- Nampower/SuperWoW: Clear native mouseover unit + -- Nampower: Clear native mouseover unit if SetMouseoverUnit then SetMouseoverUnit() end diff --git a/libs/libdebuff.lua b/libs/libdebuff.lua index 17720c00..b6d51063 100644 --- a/libs/libdebuff.lua +++ b/libs/libdebuff.lua @@ -60,7 +60,7 @@ nampowerCheckFrame:SetScript("OnEvent", function() patch = patch or 0 local versionString = major .. "." .. minor .. "." .. patch - if major > 2 or (major == 3 and minor > 0) or (major == 3 and minor == 0 and patch >= 0) then + if major > 3 or (major == 3 and minor > 0) or (major == 3 and minor == 0 and patch >= 0) then DEFAULT_CHAT_FRAME:AddMessage("|cff33ff99[libdebuff]|r Nampower v" .. versionString .. " detected - GetUnitField mode enabled!") if SetCVar and GetCVar then @@ -1204,7 +1204,7 @@ if hasNampower then if not casterGuid or not spellId then return end - -- Get spell name - try Nampower first, then SuperWoW + -- Get spell name via Nampower local spellName = nil if GetSpellRec then local rec = GetSpellRec(spellId) diff --git a/modules/nameplates.lua b/modules/nameplates.lua index 760c05d9..7e9d4b2d 100644 --- a/modules/nameplates.lua +++ b/modules/nameplates.lua @@ -479,7 +479,7 @@ nameplates:RegisterEvent("ZONE_CHANGED_NEW_AREA") nameplates.OnAuraUpdate = function(self, guid) if not guid then return end - -- GUID is actual GUID (0xF13000...) from SuperWoW/Nampower events + -- GUID is actual GUID (0xF13000...) from Nampower events local plate = guidRegistry[guid] if plate and plate.nameplate then -- Mark nameplate for aura update in next OnUpdate cycle diff --git a/modules/nampower.lua b/modules/nampower.lua index 08a42988..2e0aeddd 100644 --- a/modules/nampower.lua +++ b/modules/nampower.lua @@ -6,7 +6,7 @@ pfUI:RegisterModule("nampower", "vanilla", function () -- Only load if Nampower is available if not GetNampowerVersion then return end - -- Safe wrapper for SuperWoW's GetSpellNameAndRankForId (may not be available) + -- Safe wrapper for GetSpellNameAndRankForId (may not be available) local function SafeGetSpellNameAndRank(spellId) if not GetSpellNameAndRankForId then return nil, nil end local success, name, rank = pcall(GetSpellNameAndRankForId, spellId)