actionbar: identify macro id via native function

This commit is contained in:
shagu
2025-04-20 14:15:15 +02:00
parent af2278da6b
commit d441af5a1c
+2 -5
View File
@@ -386,11 +386,8 @@ pfUI:RegisterModule("actionbar", "vanilla:tbc", function ()
self.spellslot = nil
self.booktype = nil
if macro then
local name, body, _
for slot = 1, 36 do
name, _, body = GetMacroInfo(slot)
if name == macro then break end
end
local slot = GetMacroIndexByName(macro)
local name, _, body = GetMacroInfo(slot)
if name and body then
local match