add playeronly option
This commit is contained in:
@@ -15,6 +15,7 @@ L:RegisterTranslations("enUS", function()
|
||||
["Ignore targets with the specified spell texture already on them. Useful for ignoring targets that already have a shared debuff."] = true,
|
||||
["Time threshold at which to allow refreshing a curse. Default is 0 seconds."] = 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,
|
||||
["/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,
|
||||
["Target with the highest HP."] = true,
|
||||
@@ -187,6 +188,7 @@ L:RegisterTranslations("zhCN", function()
|
||||
["Ignore targets with the specified spell texture already on them. Useful for ignoring targets that already have a shared debuff."] = "忽略已经在目标身上的指定法术纹理。对于忽略已经有共享debuff的目标很有用.",
|
||||
["Time threshold at which to allow refreshing a curse. Default is 0 seconds."] = "允许刷新诅咒的时间阈值。默认是0秒.例如:refreshtime=2",
|
||||
["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。不影响‘诅咒’命令。",
|
||||
["/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 <法术名称>|<优先级>|<选项列表,用半角逗号分隔>: 根据优先级选择目标并施放法术,如果目标上没有",
|
||||
["Target with the highest HP."] = "选择生命值最高的目标.",
|
||||
|
||||
@@ -76,6 +76,7 @@ All commands can take the following options separated by commas:
|
||||
- `allowooc` : "Allow out of combat targets to be multicursed. Would only consider using this solo to avoid potentially
|
||||
griefing raids/dungeons by pulling unintended mobs.",
|
||||
- `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.",
|
||||
- `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.",
|
||||
|
||||
@@ -11,6 +11,7 @@ local commandOptions = {
|
||||
minhp = L["Minimum HP for a target to be considered. Example usage minhp=10000. "],
|
||||
refreshtime = L["Time threshold at which to allow refreshing a curse. Default is 0 seconds."],
|
||||
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."],
|
||||
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."],
|
||||
@@ -321,6 +322,9 @@ local function passedOptionFilters(guid, options)
|
||||
return false
|
||||
end
|
||||
end
|
||||
if options["playeronly"] and not UnitIsPlayer(guid) then
|
||||
return false
|
||||
end
|
||||
return true
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user