This commit is contained in:
2024-03-07 12:39:14 +01:00
parent 435055e556
commit e3ecf68c08
5 changed files with 3 additions and 26 deletions

2
.gitignore vendored Normal file
View File

@@ -0,0 +1,2 @@
FreshShit/RaiderlosSA/out
.vscode/

View File

@@ -1,12 +0,0 @@
-- PLAYER_ENTERING_WORLD GUILD_ROSTER_UPDATE
function(e)
if aura_env.debug then print(string.format("Current ticker: %s", tostring(aura_env.ticker))) end
if aura_env.ticker == nil then
if aura_env.debug then print("Creating ticker") end
local aura_env = aura_env
aura_env.ticker = C_Timer.NewTicker(0.5, function()
if aura_env.debug then print("Ticker calling CYKA_EVENT_TICKER") end
WeakAuras.ScanEvents("CYKA_EVENT_TICKER")
end)
end
end

View File

@@ -1,12 +0,0 @@
--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

View File

@@ -1,4 +1,4 @@
-- CYKA_EVENT_TICKER -- TICKER_500
function(e) function(e)
for _, spell in ipairs(aura_env.spells) do for _, spell in ipairs(aura_env.spells) do
---@cast spell Spell ---@cast spell Spell

View File

@@ -69,5 +69,4 @@ aura_env.spells = {
Spell.new(205545, "OdynsFury"), Spell.new(205545, "OdynsFury"),
Spell.new(26297, "Berserking"), Spell.new(26297, "Berserking"),
Spell.new(12292, "Bloodbath"), Spell.new(12292, "Bloodbath"),
Spell.new(23881, "Bloodthirst")
} }