ensure NP_EnableSpellStartEvents/NP_EnableSpellGoEvents are not disabled by other addons

This commit is contained in:
pepopo978
2026-03-22 08:24:53 -07:00
parent d426977c1c
commit c6ccd3de3f
+12
View File
@@ -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