Fix comparison operator

This commit is contained in:
Andrew Tomaka 2021-01-11 22:50:54 -05:00
parent ebc845ff05
commit f94dd862c1
Signed by: atomaka
GPG key ID: 61209BF70A5B18BE

View file

@ -83,12 +83,13 @@ function MyAddon.announceKey()
end end
function MyAddon.announceTaunts(_, _, event, _, _, srcName, _, _, _, dstName, _, _, spellId, spellName, ...) 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 return
end end
DEFAULT_CHAT_FRAME:AddMessage("LOOKING")
message = format("TAUNT: %s used %s", srcName, spellName) message = format("TAUNT: %s used %s", srcName, spellName)
if dstName != nil then if dstName ~= nil then
message = format("%s on %s", message, dstName) message = format("%s on %s", message, dstName)
end end