From 587f20a66bcd4387f6271f72dfdc899a2376e651 Mon Sep 17 00:00:00 2001 From: shagu Date: Sun, 26 Jul 2020 11:04:01 +0200 Subject: [PATCH] actionbar: skip macro scanning on native detection --- modules/actionbar.lua | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/modules/actionbar.lua b/modules/actionbar.lua index bad5097a..bd0272c4 100644 --- a/modules/actionbar.lua +++ b/modules/actionbar.lua @@ -353,7 +353,19 @@ pfUI:RegisterModule("actionbar", "vanilla:tbc", function () local match for line in gfind(body, "[^%\n]+") do - _, _, match = string.find(line, '^/cast (.+)') + _, _, match = string.find(line, '^#showtooltip (.+)') + + -- skip any further manual macro scanning on + -- gameclients with native macro spell detection + if pfUI.client >= 11200 and match then + self.spellslot = nil + self.booktype = nil + return + end + + if not match then + _, _, match = string.find(line, '^/cast (.+)') + end if not match then _, _, match = string.find(line, '^/pfcast (.+)')