From 7be9c349bd28bd4e16a8c0f7896a0e779b862b14 Mon Sep 17 00:00:00 2001 From: pepopo978 Date: Tue, 17 Jun 2025 07:40:02 -0700 Subject: [PATCH] add to commands and localization --- Localization.lua | 4 ++++ commands.lua | 1 + 2 files changed, 5 insertions(+) diff --git a/Localization.lua b/Localization.lua index df21c9e..adb85b2 100644 --- a/Localization.lua +++ b/Localization.lua @@ -31,6 +31,8 @@ L:RegisterTranslations("enUS", function() ["|cffffcc00Cursive:|cffffaaaa Couldn't find a target to curse."] = true, ["curse_duration_format"] = ".*over ([%d.]+) sec.", ["Shared Debuffs"] = true, + ["|cffffcc00Cursive:|cffffaaaa Unknown command."] = true, + ["/cursive gettarget |>: Gets the guid of what cursive would target for the spell based on priority and options without casting anything."] = true, -- curses ["(.+) fades from (.+)"] = true, @@ -232,6 +234,8 @@ L:RegisterTranslations("zhCN", function() -- 月火术:灼烧敌人,对其造成40到48点伤害,并在18秒内造成额外的120点奥术伤害。 ["curse_duration_format"] = "(%d+%.?%d*)秒", ["Shared Debuffs"] = "共享debuff", + ["|cffffcc00Cursive:|cffffaaaa Unknown command."] = "|cffffcc00Cursive:|cffffaaaa 未知命令.", + ["/cursive gettarget |>: Gets the guid of what cursive would target for the spell based on priority and options without casting anything."] = "/cursive gettarget <法术名称>|<选项列表,用半角逗号分隔>: 获取cursive根据优先级和选项选择的目标ID,不会施放任何法术.", -- curses ["(.+) fades from (.+)"] = "(.+)效果从(.+)身上消失", diff --git a/commands.lua b/commands.lua index 4550694..7596f2a 100644 --- a/commands.lua +++ b/commands.lua @@ -22,6 +22,7 @@ local commands = { ["curse"] = L["/cursive curse ||>: Casts spell if not already on target/guid"], ["multicurse"] = L["/cursive multicurse ||>: Picks target based on priority and casts spell if not already on target"], ["target"] = L["/cursive target ||>: Targets unit based on priority if spell in range and not already on target"], + ["gettarget"] = L["/cursive gettarget |>: Gets the guid of what cursive would target for the spell based on priority and options without casting anything."], } local PRIORITY_HIGHEST_HP = "HIGHEST_HP"