diff --git a/Cursive.toc b/Cursive.toc index 61c4bc9..d0c1ce5 100644 --- a/Cursive.toc +++ b/Cursive.toc @@ -1,6 +1,6 @@ ## Interface: 11200 -## Title: Cursive 3.0.8 -## Title-zhCN: Cursive 3.0.8 +## Title: Cursive 3.1.0 +## Title-zhCN: Cursive 3.1.0 ## Author: Pepopo ## Notes: Uses GUIDs to show units in combat and track curses ## Notes-zhCN: 使用的GUID功能来显示战斗中的单位并监视诅咒等 diff --git a/Localization.lua b/Localization.lua index 3682aa3..5cb33a6 100644 --- a/Localization.lua +++ b/Localization.lua @@ -18,6 +18,7 @@ L:RegisterTranslations("enUS", function() ["Always prioritize current target when choosing target for multicurse. Does not affect 'curse' command."] = true, ["Ignore the current target when choosing target for multicurse. Does not affect 'curse' command."] = true, ["Only choose players and ignore npcs when choosing target for multicurse. Does not affect 'curse' command."] = true, + ["Only choose mobs tagged by other players when choosing target for multicurse. Does not affect 'curse' command."] = true, ["/cursive curse ||>: Casts spell if not already on target/guid"] = true, ["/cursive multicurse ||>: Picks target based on priority and casts spell if not already on target"] = true, ["/cursive target ||>: Targets unit based on priority if spell in range and not already on target"] = true, @@ -228,6 +229,7 @@ L:RegisterTranslations("zhCN", function() ["Always prioritize current target when choosing target for multicurse. Does not affect 'curse' command."] = "选择多重诅咒目标时总是优先当前目标。不影响‘诅咒’命令。", ["Ignore the current target when choosing target for multicurse. Does not affect 'curse' command."] = "选择多重诅咒目标时忽略当前目标。不影响‘诅咒’命令。", ["Only choose players and ignore npcs when choosing target for multicurse. Does not affect 'curse' command."] = "选择多重诅咒目标时只选择玩家,忽略NPC。不影响‘诅咒’命令。", + ["Only choose mobs tagged by other players when choosing target for multicurse. Does not affect 'curse' command."] = "选择多重诅咒目标时只选择被其他玩家标记过的怪物。不影响‘诅咒’命令。", ["/cursive curse ||>: Casts spell if not already on target/guid"] = "/cursive curse <法术名称>|<目标ID>|<选项列表,用半角逗号分隔>: 如果目标/ID身上没有此法术,目标ID可以是以下内容(mouseover), (player), (pet), (party)(%d), (partypet)(%d), (raid)(%d+), (raidpet)(%d+), (target), (targettarget)", ["/cursive multicurse ||>: Picks target based on priority and casts spell if not already on target"] = "/cursive multicurse <法术名称>|<优先级>|<选项列表,用半角逗号分隔>: 根据优先级选择目标并施放法术,如果目标上没有", ["/cursive target ||>: Targets unit based on priority if spell in range and not already on target"] = "/cursive target <法术名称>|<优先级>|<选项列表,用半角逗号分隔>:如果法术在范围内且目标上没有此法术,则根据优先级选择目标", diff --git a/README.md b/README.md index 7d4312b..80fc093 100644 --- a/README.md +++ b/README.md @@ -93,6 +93,8 @@ All commands can take the following options separated by commas: - `ignoretarget` : "Ignore the current target when choosing target for multicurse. Does not affect 'curse' command.", - `playeronly` : "Only choose players and ignore npcs when choosing target for multicurse. Does not affect 'curse' command.", +- `istapped` : "Only choose mobs tagged by other players when choosing target for multicurse. Does not affect 'curse' + command.", - `minhp=` : "Minimum HP for a target to be considered.", - `refreshtime=` : "Time threshold at which to allow refreshing a curse. Default is 0 seconds.", - `name=` : "Filter targets by name. Can be a partial match. If no match is found, the command will do nothing.", diff --git a/commands.lua b/commands.lua index ce1f6f8..eafc2b0 100644 --- a/commands.lua +++ b/commands.lua @@ -17,6 +17,7 @@ local commandOptions = { priotarget = L["Always prioritize current target when choosing target for multicurse. Does not affect 'curse' command."], ignoretarget = L["Ignore the current target when choosing target for multicurse. Does not affect 'curse' command."], playeronly = L["Only choose players and ignore npcs when choosing target for multicurse. Does not affect 'curse' command."], + istapped = L["Only choose mobs tagged by other players when choosing target for multicurse. Does not affect 'curse' command."], name = L["Filter targets by name. Can be a partial match. If no match is found, the command will do nothing."], ignorespellid = L["Ignore targets with the specified spell id already on them. Useful for ignoring targets that already have a shared debuff."], ignorespelltexture = L["Ignore targets with the specified spell texture already on them. Useful for ignoring targets that already have a shared debuff."], @@ -340,6 +341,9 @@ local function passedOptionFilters(guid, options) if options["playeronly"] and not UnitIsPlayer(guid) then return false end + if options["istapped"] and not UnitIsTapped(guid) then + return false + end return true end