mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-09 23:20:00 +00:00
actionbar: identify macro id via native function
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user