From 471e075ca69836502473cb95a4fd1b9e23d5ca07 Mon Sep 17 00:00:00 2001 From: Infus Date: Thu, 21 Nov 2024 20:24:15 +0100 Subject: [PATCH] Fix check --- WeakAurasOptions/LoadOptions.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WeakAurasOptions/LoadOptions.lua b/WeakAurasOptions/LoadOptions.lua index 644e88f989..f9cefa8ab9 100644 --- a/WeakAurasOptions/LoadOptions.lua +++ b/WeakAurasOptions/LoadOptions.lua @@ -717,7 +717,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)) - if value and value ~= "" and type(value) == "number" or type(value) == "string" then + if value and value ~= "" and (type(value) == "number" or type(value) == "string") then local spellID = WeakAuras.SafeToNumber(value) if spellID then if arg.negativeIsEJ and WeakAuras.IsRetail() and spellID < 0 then