Announce all taunts in chat frame #2

Merged
atomaka merged 5 commits from taunt-tracker into master 2021-01-12 21:37:01 -05:00
Showing only changes of commit f94dd862c1 - Show all commits

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