fixed typos and cleaned up comments

This commit is contained in:
Meow
2026-03-02 19:13:45 +01:00
parent 869b3e4ea3
commit 3922d9879e
4 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -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
+2 -2
View File
@@ -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)
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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)