Announce all taunts in chat frame #2
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue