From ca2a8b3143906bd20c1979d04111a7502a1ebf17 Mon Sep 17 00:00:00 2001 From: Buds Date: Sun, 24 Sep 2023 00:43:20 +0200 Subject: [PATCH] Fix error in cast trigger's GetNameAndIcon --- WeakAuras/Prototypes.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/WeakAuras/Prototypes.lua b/WeakAuras/Prototypes.lua index cd8a954c2b..7dc63d7c72 100644 --- a/WeakAuras/Prototypes.lua +++ b/WeakAuras/Prototypes.lua @@ -8824,7 +8824,7 @@ Private.event_prototypes = { }, GetNameAndIcon = function(trigger) local name, icon, spellId, _ - if trigger.use_spellNames and type(trigger.spellNames == "table") then + if trigger.use_spellNames and type(trigger.spellNames) == "table" then for _, spellName in ipairs(trigger.spellNames) do spellId = WeakAuras.SafeToNumber(spellName) if spellId then @@ -8840,7 +8840,7 @@ Private.event_prototypes = { end end end - if trigger.use_spellIds and type(trigger.spellIds == "table") then + if trigger.use_spellIds and type(trigger.spellIds) == "table" then for _, spellIdString in ipairs(trigger.spellIds) do spellId = WeakAuras.SafeToNumber(spellIdString) if spellId then