from retail
This commit is contained in:
@@ -7,7 +7,7 @@ local function getAuraMatchesLabel(name)
|
||||
local ids = WeakAuras.spellCache.GetSpellsMatching(name)
|
||||
if ids then
|
||||
local numMatches = 0
|
||||
for id, _ in pairs(ids) do
|
||||
for _ in pairs(ids) do
|
||||
numMatches = numMatches + 1
|
||||
end
|
||||
return tostring(numMatches)
|
||||
@@ -21,7 +21,7 @@ local function getAuraMatchesList(name)
|
||||
if ids then
|
||||
local descText = ""
|
||||
for id, _ in pairs(ids) do
|
||||
local name, _, icon = GetSpellInfo(id)
|
||||
local _, _, icon = GetSpellInfo(id)
|
||||
if icon then
|
||||
if descText == "" then
|
||||
descText = "|T"..icon..":0|t: "..id
|
||||
@@ -113,8 +113,7 @@ local function CreateNameOptions(aura_options, data, trigger, size, isExactSpell
|
||||
|
||||
if isExactSpellId then
|
||||
aura_options[iconOption].name = function()
|
||||
local name = GetSpellInfo(WeakAuras.SafeToNumber(trigger[optionKey] and trigger[optionKey][i] or 0))
|
||||
return name
|
||||
return GetSpellInfo(WeakAuras.SafeToNumber(trigger[optionKey] and trigger[optionKey][i] or 0))
|
||||
end
|
||||
aura_options[iconOption].image = function()
|
||||
local icon
|
||||
@@ -524,7 +523,7 @@ local function GetBuffTriggerOptions(data, triggernum)
|
||||
},
|
||||
use_stealable = {
|
||||
type = "toggle",
|
||||
name = function(input)
|
||||
name = function()
|
||||
local value = trigger.use_stealable
|
||||
if value == nil then return L["Is Stealable"]
|
||||
elseif value == false then return "|cFFFF0000 " .. L["Negator"] .. " " .. L["Is Stealable"] .. "|r"
|
||||
|
||||
Reference in New Issue
Block a user