diff --git a/README.md b/README.md index f6230a5..da8a23b 100644 --- a/README.md +++ b/README.md @@ -80,10 +80,10 @@ All commands can take the following options separated by commas: - `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.", - `ignorespellid=` : "Ignore targets with the specified spell id already on them. Useful for ignoring targets that already have a shared debuff.", -- `ignoretexture=` : "Ignore targets with the specified spell texture already on them. Useful for ignoring targets that already have a shared debuff.", +- `ignorespelltexture=` : "Ignore targets with the specified spell texture already on them. Useful for ignoring targets that already have a shared debuff.", EXAMPLE: `/cursive multicurse Corruption|HIGHEST_HP|warnings,resistsound,expiringsound,minhp=10000,refreshtime=2` -EXAMPLE: `/cursive multicurse Curse of Recklessness|RAID_MARK|name=Touched Warrior,ignoretexture=Spell_Shadow_UnholyStrength,resistsound,expiringsound` +EXAMPLE: `/cursive multicurse Curse of Recklessness|RAID_MARK|name=Touched Warrior,ignorespelltexture=Spell_Shadow_UnholyStrength,resistsound,expiringsound` ## Important info diff --git a/commands.lua b/commands.lua index 75d687d..708add2 100644 --- a/commands.lua +++ b/commands.lua @@ -280,7 +280,7 @@ local function hasSpellTexture(guid, ignoreTexture) if not texture then break end - if texture == ignoreTexture then + if string.find(texture, ignoreTexture) then if options["warnings"] then DEFAULT_CHAT_FRAME:AddMessage(curseNoTarget) end @@ -293,7 +293,7 @@ local function hasSpellTexture(guid, ignoreTexture) if not texture then break end - if texture == ignoreTexture then + if string.find(texture, ignoreTexture) then if options["warnings"] then DEFAULT_CHAT_FRAME:AddMessage(curseNoTarget) end @@ -346,7 +346,7 @@ local function pickTarget(selectedPriority, spellNameNoRank, checkRange, options if not options["ignoretarget"] or guid ~= currentTargetGuid then -- check if in combat already or player is actively targeting the mob if ignoreInFight or Cursive.filter.infight(guid) or guid == currentTargetGuid then - if passedOptionFilters(targetedGuid, options) then + if passedOptionFilters(guid, options) then local passedRangeCheck = false if IsSpellInRange then -- use IsSpellInRange from nampower if available