Revert "Try something fancy"

This reverts commit 42a7a992fd.
This commit is contained in:
Andrew Tomaka 2021-01-12 21:32:49 -05:00
parent 42a7a992fd
commit f709da599a
Signed by: atomaka
GPG key ID: 61209BF70A5B18BE

View file

@ -82,21 +82,10 @@ 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