Announce all taunts in chat frame #2
1 changed files with 11 additions and 0 deletions
11
MyAddon.lua
11
MyAddon.lua
|
@ -82,10 +82,21 @@ function MyAddon.announceKey()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local function multiSelect(table, ...)
|
||||||
|
result = {}
|
||||||
|
for i, val in ipairs(...) do
|
||||||
|
table.insert(result, table[val])
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
function MyAddon.announceTaunts(...)
|
function MyAddon.announceTaunts(...)
|
||||||
event = select(2, ...)
|
event = select(2, ...)
|
||||||
spellId = select(12, ...)
|
spellId = select(12, ...)
|
||||||
|
|
||||||
|
a, b = multiSelect(..., 2, 12)
|
||||||
|
print(a)
|
||||||
|
print(b)
|
||||||
|
|
||||||
if event ~= 'SPELL_CAST_SUCCESS' or MyAddon.taunts[spellId] ~= true then
|
if event ~= 'SPELL_CAST_SUCCESS' or MyAddon.taunts[spellId] ~= true then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue