Tumble files around a bit
This commit is contained in:
33
WeakAuras/Projects/RayOfHope/trigger1.lua
Normal file
33
WeakAuras/Projects/RayOfHope/trigger1.lua
Normal file
@@ -0,0 +1,33 @@
|
||||
-- COMBAT_LOG_EVENT_UNFILTERED
|
||||
function(
|
||||
event,
|
||||
timestamp,
|
||||
eventtype,
|
||||
hideCaster,
|
||||
srcGUID,
|
||||
srcName,
|
||||
srcFlags,
|
||||
srcRaidFlags,
|
||||
dstGUID,
|
||||
dstName,
|
||||
dstFlags,
|
||||
dstRaidFlags,
|
||||
spellID
|
||||
)
|
||||
-- if aura_env.debug then rayActive = false end
|
||||
-- print(string.format("rayActive: %s, eventtype: %s", tostring(rayActive), tostring(eventtype)))
|
||||
if not aura_env.rayActive and eventtype == "SPELL_AURA_APPLIED" then
|
||||
-- if aura_env.debug then spellID = 197268 end
|
||||
if spellID == aura_env.spellID 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
|
||||
Reference in New Issue
Block a user