From 0dc9fac81a6a1f375f9f606a8a279d4ad9c16ea6 Mon Sep 17 00:00:00 2001 From: NoM0Re Date: Mon, 16 Dec 2024 13:26:16 +0100 Subject: [PATCH] (fix) Cast widget's spellname/id --- WeakAuras/Prototypes.lua | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/WeakAuras/Prototypes.lua b/WeakAuras/Prototypes.lua index faa145d..290c6c3 100644 --- a/WeakAuras/Prototypes.lua +++ b/WeakAuras/Prototypes.lua @@ -2604,7 +2604,7 @@ Private.event_prototypes = { name = "spellName", display = L["Spell Name"], type = "spell", - --noValidation = true, + noValidation = true, init = "arg", enable = function(trigger) return trigger.subeventPrefix and (trigger.subeventPrefix:find("SPELL") or trigger.subeventPrefix == "RANGE" or trigger.subeventPrefix:find("DAMAGE")) @@ -2667,6 +2667,7 @@ Private.event_prototypes = { name = "extraSpellName", display = L["Extra Spell Name"], type = "string", + noValidation = true, init = "arg", enable = function(trigger) return trigger.subeventSuffix and (trigger.subeventSuffix == "_INTERRUPT" or trigger.subeventSuffix == "_DISPEL" or trigger.subeventSuffix == "_DISPEL_FAILED" or trigger.subeventSuffix == "_STOLEN" or trigger.subeventSuffix == "_AURA_BROKEN_SPELL") @@ -5764,9 +5765,9 @@ Private.event_prototypes = { operator = "preamble", preambleAdd = "spellChecker:AddName(%q)" }, - test = "spellChecker:Check(spellId)", testGroup = "spell", - --noValidation = true, + test = "spellChecker:CheckName(spell)", + noValidation = true, }, { name = "spellIds", @@ -5777,10 +5778,9 @@ Private.event_prototypes = { preamble = "local spellChecker = WeakAuras.CreateSpellChecker()", multiEntry = { operator = "preamble", - preambleAdd = "spellChecker:AddExact(%q)" + preambleAdd = "spellChecker:AddName(GetSpellInfo(%q))" }, - test = "spellChecker:Check(spellId)", - testGroup = "spell", + test = "spellChecker:CheckName(spell)", }, { name = "spellId",