Files
wow-weakauras/Complete Projects/Legion/RaiderlosSA 2.0.lua

13 lines
330 B
Lua

--COMBAT_LOG_EVENT_UNFILTERED
function(...)
local se = select(3, ...)
if se == "SPELL_CAST_START" or se == "SPELL_CAST_SUCCESS" then
local spell = select(14, ...)
spell = spell:gsub("%s", "_")
local soundfile = "Interface\\Sounds\\" .. spell .. ".ogg"
local success = PlaySoundFile(soundfile, "Master")
end
end
--INIT