From 29f9c3afd7fdba6df721f1bbabbaf554a7fa8c25 Mon Sep 17 00:00:00 2001 From: pepopo978 Date: Thu, 26 Mar 2026 08:06:29 -0700 Subject: [PATCH] make sure NP_EnableUnitEventsGuid enabled --- Cursive.toc | 4 ++-- commands.lua | 4 ++++ global.lua | 6 ++++++ 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/Cursive.toc b/Cursive.toc index 8862307..a32f7a0 100644 --- a/Cursive.toc +++ b/Cursive.toc @@ -1,6 +1,6 @@ ## Interface: 11200 -## Title: Cursive 3.0.4 -## Title-zhCN: Cursive 3.0.4 +## Title: Cursive 3.0.5 +## Title-zhCN: Cursive 3.0.5 ## Author: Pepopo ## Notes: Uses GUIDs to show units in combat and track curses ## Notes-zhCN: 使用的GUID功能来显示战斗中的单位并监视诅咒等 diff --git a/commands.lua b/commands.lua index 7458623..f6e4bbd 100644 --- a/commands.lua +++ b/commands.lua @@ -1,3 +1,7 @@ +if not Cursive.nampower then + return +end + local L = AceLibrary("AceLocale-2.2"):new("Cursive") local curseCommands = L["|cffffcc00Cursive:|cffffaaaa Commands:"] local priorityChoices = L["|cffffcc00Priority choices:"] diff --git a/global.lua b/global.lua index 88a16a2..efb8d0e 100644 --- a/global.lua +++ b/global.lua @@ -33,6 +33,11 @@ Cursive:RegisterEvent("ADDON_LOADED", function(name) DEFAULT_CHAT_FRAME:AddMessage("|cffff6060Cursive:|r Another addon disabled nampower spell go events. Re-enabling as they are required.") SetCVar("NP_EnableSpellGoEvents", 1) end + + if GetCVar("NP_EnableUnitEventsGuid") ~= "1" then + DEFAULT_CHAT_FRAME:AddMessage("|cffff6060Cursive:|r Another addon disabled nampower guid events. Re-enabling as they are required.") + SetCVar("NP_EnableUnitEventsGuid", 1) + end end) function Cursive:OnEnable() @@ -42,6 +47,7 @@ function Cursive:OnEnable() SetCVar("NP_EnableSpellStartEvents", 1) SetCVar("NP_EnableSpellGoEvents", 1) + SetCVar("NP_EnableUnitEventsGuid", 1) DEFAULT_CHAT_FRAME:AddMessage(L["|cffffcc00Cursive:|cffffaaaa Loaded. /cursive for commands and minimap icon for options."])