Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function( event, time, subevent, _, sourceGUID, sourceName, _, _, destGUID, destName, _, _, spellID, spellName, _, amount, _, _, _, crit )
- local e = aura_env
- local now = GetTime()
- if (e.cinder_timer - now) < 0 then return end
- if subevent ~= "SPELL_DAMAGE" then return end
- if sourceGUID ~= UnitGUID('player') then return end
- if spellID == 198928 then
- e.cinder_count = e.cinder_count + 1
- if not e.mob_table[ destGUID ] then
- e.mob_table[ destGUID ] = true
- e.mob_count = e.mob_count + 1
- end
- e.timer_hide = now + 4
- end
- -- hide total after 4 seconds, starting after the last count+1
- if (e.timer_hide - now) > 0 then
- e.cinder_display = e.cinder_count
- else
- e.cinder_display = 0
- end
- return true
- end
- --[[
- The goal here, count how many instances of cinderstorm hit with each cast of the spell.
- cinder_timer = time when you start casting cinderstorm + 5sec
- All of these must be true to add a counter:
- the time frame is within 6sec of starting to cast Cinderstorm
- the combat log sub event is "SPELL DAMAGE"
- the source is the player
- the spellID is 198928 aka "Cinderstorm"
- Also counts the number of targets hit by cinderstorm. funny to have such short code after spending so long working on it.
- timer_hide exists to hide the cinderstorm total after X seconds
- --]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement