realized it doesn't make much sense as a slash command
This commit is contained in:
@@ -32,7 +32,6 @@ L:RegisterTranslations("enUS", function()
|
||||
["curse_duration_format"] = ".*over ([%d.]+) sec.",
|
||||
["Shared Debuffs"] = true,
|
||||
["|cffffcc00Cursive:|cffffaaaa Unknown command."] = true,
|
||||
["/cursive gettarget <spellName:str>|<options?:List<str>>: Gets the guid of what cursive would target for the spell based on priority and options without casting anything."] = true,
|
||||
|
||||
-- curses
|
||||
["(.+) fades from (.+)"] = true,
|
||||
@@ -235,7 +234,6 @@ L:RegisterTranslations("zhCN", function()
|
||||
["curse_duration_format"] = "(%d+%.?%d*)秒",
|
||||
["Shared Debuffs"] = "共享debuff",
|
||||
["|cffffcc00Cursive:|cffffaaaa Unknown command."] = "|cffffcc00Cursive:|cffffaaaa 未知命令.",
|
||||
["/cursive gettarget <spellName:str>|<options?:List<str>>: 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 (.+)"] = "(.+)效果从(.+)身上消失",
|
||||
|
||||
@@ -45,9 +45,10 @@ EXAMPLE: `/cursive target Icicles|HIGHEST_HP` will target the enemy with the hig
|
||||
can also do it only if you don't have a target already:
|
||||
`/run if not UnitName("target") then SlashCmdList.CURSIVE("target Icicles|HIGHEST_HP") end`
|
||||
|
||||
`/cursive gettarget <spellName:str>|<priority?:str>|<options?:comma separated str>`: Returns guid of the unit that would be targeted based on priority and options.
|
||||
There is also
|
||||
`/script targetGuid = Cursive:GetTarget("str", "str", {})`: Returns guid of the unit that would be targeted based on priority and options.
|
||||
|
||||
EXAMPLE: `/cursive gettarget Corruption|HIGHEST_HP` will return guid of the enemy with the highest HP in range of the spell Corruption that doesn't already have Corruption.
|
||||
EXAMPLE: `/script targetGuid = Cursive:GetTarget("Corruption", "HIGHEST_HP", {})` will return guid of the enemy with the highest HP in range of the spell Corruption that doesn't already have Corruption.
|
||||
|
||||
## Priority Options
|
||||
|
||||
|
||||
@@ -22,7 +22,6 @@ local commands = {
|
||||
["curse"] = L["/cursive curse <spellName:str>|<guid?:str>|<options?:List<str>>: Casts spell if not already on target/guid"],
|
||||
["multicurse"] = L["/cursive multicurse <spellName:str>|<priority?:str>|<options?:List<str>>: Picks target based on priority and casts spell if not already on target"],
|
||||
["target"] = L["/cursive target <spellName:str>|<priority?:str>|<options?:List<str>>: Targets unit based on priority if spell in range and not already on target"],
|
||||
["gettarget"] = L["/cursive gettarget <spellName:str>|<options?:List<str>>: 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"
|
||||
@@ -118,10 +117,6 @@ local function handleSlashCommands(msg, editbox)
|
||||
local spellName, priority, optionsStr = Cursive.utils.strsplit("|", args)
|
||||
local options = parseOptions(optionsStr)
|
||||
Cursive:Target(spellName, priority, options)
|
||||
elseif command == "gettarget" then
|
||||
local spellName, optionsStr = Cursive.utils.strsplit("|", args)
|
||||
local options = parseOptions(optionsStr)
|
||||
Cursive:GetSpellTarget(spellName, options)
|
||||
else
|
||||
DEFAULT_CHAT_FRAME:AddMessage(L["|cffffcc00Cursive:|cffffaaaa Unknown command."])
|
||||
DEFAULT_CHAT_FRAME:AddMessage(curseCommands)
|
||||
|
||||
Reference in New Issue
Block a user