Skip to content

Commit

Permalink
Fix error in cast trigger's GetNameAndIcon
Browse files Browse the repository at this point in the history
  • Loading branch information
mrbuds authored and InfusOnWoW committed Sep 24, 2023
1 parent de7f8e2 commit ca2a8b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions WeakAuras/Prototypes.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit ca2a8b3

Please sign in to comment.