This commit is contained in:
NoM0Re
2025-04-13 16:03:55 +02:00
committed by GitHub
parent 388434a6e4
commit 51bac56479
44 changed files with 1228 additions and 844 deletions
+2
View File
@@ -687,6 +687,7 @@ function OptionsPrivate.ConstructOptions(prototype, data, startorder, triggernum
local value = getValue(trigger, "use_"..realname, realname, multiEntry, entryNumber)
if(arg.type == "item") then
local useExactSpellId = (arg.showExactOption and getValue(trigger, nil, "use_exact_"..realname, multiEntry, entryNumber))
or arg.only_exact
if value and value ~= "" then
if useExactSpellId then
local itemId = tonumber(value)
@@ -709,6 +710,7 @@ function OptionsPrivate.ConstructOptions(prototype, data, startorder, triggernum
end
elseif(arg.type == "spell") then
local useExactSpellId = (arg.showExactOption and getValue(trigger, nil, "use_exact_"..realname, multiEntry, entryNumber))
or arg.only_exact
if value and value ~= "" and (type(value) == "number" or type(value) == "string") then
local spellID = WeakAuras.SafeToNumber(value)
if spellID then