add istapped option

This commit is contained in:
pepopo978
2026-04-02 07:24:38 -07:00
parent f3bba115fa
commit 3d7b09bdf4
4 changed files with 10 additions and 2 deletions
+2 -2
View File
@@ -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功能来显示战斗中的单位并监视诅咒等
+2
View File
@@ -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 <spellName:str>|<guid?:str>|<options?:List<str>>: Casts spell if not already on target/guid"] = true,
["/cursive multicurse <spellName:str>|<priority?:str>|<options?:List<str>>: Picks target based on priority and casts spell if not already on target"] = true,
["/cursive target <spellName:str>|<priority?:str>|<options?:List<str>>: 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 <spellName:str>|<guid?:str>|<options?:List<str>>: 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 <spellName:str>|<priority?:str>|<options?:List<str>>: Picks target based on priority and casts spell if not already on target"] = "/cursive multicurse <法术名称>|<优先级>|<选项列表,用半角逗号分隔>: 根据优先级选择目标并施放法术,如果目标上没有",
["/cursive target <spellName:str>|<priority?:str>|<options?:List<str>>: Targets unit based on priority if spell in range and not already on target"] = "/cursive target <法术名称>|<优先级>|<选项列表,用半角逗号分隔>:如果法术在范围内且目标上没有此法术,则根据优先级选择目标",
+2
View File
@@ -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=<number>` : "Minimum HP for a target to be considered.",
- `refreshtime=<number>` : "Time threshold at which to allow refreshing a curse. Default is 0 seconds.",
- `name=<str>` : "Filter targets by name. Can be a partial match. If no match is found, the command will do nothing.",
+4
View File
@@ -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