From c6ccd3de3f5f1c737913d2b644402c7fd321ccc4 Mon Sep 17 00:00:00 2001 From: pepopo978 Date: Sun, 22 Mar 2026 08:24:53 -0700 Subject: [PATCH] ensure NP_EnableSpellStartEvents/NP_EnableSpellGoEvents are not disabled by other addons --- global.lua | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/global.lua b/global.lua index a418f49..88a16a2 100644 --- a/global.lua +++ b/global.lua @@ -23,6 +23,18 @@ if not Cursive.nampower then return end +Cursive:RegisterEvent("ADDON_LOADED", function(name) + if GetCVar("NP_EnableSpellStartEvents") ~= "1" then + DEFAULT_CHAT_FRAME:AddMessage("|cffff6060Cursive:|r Another addon disabled nampower spell start events. Re-enabling as they are required.") + SetCVar("NP_EnableSpellStartEvents", 1) + end + + if GetCVar("NP_EnableSpellGoEvents") ~= "1" then + DEFAULT_CHAT_FRAME:AddMessage("|cffff6060Cursive:|r Another addon disabled nampower spell go events. Re-enabling as they are required.") + SetCVar("NP_EnableSpellGoEvents", 1) + end +end) + function Cursive:OnEnable() if not Cursive.nampower then return