From f94dd862c173d834c288fa792a223a583647da22 Mon Sep 17 00:00:00 2001 From: Andrew Tomaka Date: Mon, 11 Jan 2021 22:50:54 -0500 Subject: [PATCH] Fix comparison operator --- MyAddon.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/MyAddon.lua b/MyAddon.lua index 434fff4..640bd74 100755 --- a/MyAddon.lua +++ b/MyAddon.lua @@ -83,12 +83,13 @@ function MyAddon.announceKey() end function MyAddon.announceTaunts(_, _, event, _, _, srcName, _, _, _, dstName, _, _, spellId, spellName, ...) - if event != 'SPELL_CAST_SUCESS' || !MyAddon.taunts[spellId] then + if event ~= 'SPELL_CAST_SUCESS' or MyAddon.taunts[spellId] ~= true then return end + DEFAULT_CHAT_FRAME:AddMessage("LOOKING") message = format("TAUNT: %s used %s", srcName, spellName) - if dstName != nil then + if dstName ~= nil then message = format("%s on %s", message, dstName) end