35 lines
755 B
Lua
35 lines
755 B
Lua
-- COMBAT_LOG_EVENT_UNFILTERED
|
|
function(
|
|
event,
|
|
timestamp,
|
|
eventtype,
|
|
hideCaster,
|
|
srcGUID,
|
|
srcName,
|
|
srcFlags,
|
|
srcRaidFlags,
|
|
dstGUID,
|
|
dstName,
|
|
dstFlags,
|
|
dstRaidFlags,
|
|
spellID
|
|
)
|
|
local rayActive = aura_env.rayActive
|
|
if aura_env.debug then rayActive = false end
|
|
-- print(string.format("rayActive: %s, eventtype: %s", tostring(rayActive), tostring(eventtype)))
|
|
if not rayActive and eventtype == "SPELL_AURA_APPLIED" then
|
|
if aura_env.debug then spellID = 197268 end
|
|
if spellID == 197268 and srcGUID == UnitGUID("player") then
|
|
if aura_env.debug then print("Ray applied") end
|
|
|
|
aura_env.rayActive = true
|
|
|
|
-- Reset values if new ray is cast
|
|
aura_env.totalHealAbsorb = 0
|
|
aura_env.totalDmgAbsorb = 0
|
|
|
|
return true
|
|
end
|
|
end
|
|
end
|