Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Trigger: Dot Parser
- --Events: COMBAT_LOG_EVENT_UNFIILTERED
- --5/10 13:31:46.330 SPELL_SUMMON,Player-970-000AAEDB,"Krazylock-BetaLevelingRealm03",0x511,0x0,Creature-0-2084-870-10-103679-0000322911,"Soul Effigy",0xa28,0x0,205178,"Soul Effigy",0x20
- function(event, ...)
- local destGUID = select(8, ...) -- the GUID of the soul effigy
- local sourceGUID = select(4, ...) -- The current player who we are looking for
- local subevent = select(2, ...) --Combat log events.
- local spellid = select(12, ...)
- local Soul_Effigy_SPELLID = 205178 -- only really used for summon
- local SAR = "SPELL_AURA_REMOVED"
- local SAA = "SPELL_AURA_APPLIED"
- local SARe = "SPELL_AURA_REFRESH"
- if subevent == "SPELL_SUMMON" and sourceGUID == aura_env.playerGUID and spellid == Soul_Effigy_SPELLID then -- we only want to worry about effigy summons, not other summons
- --We have summoned a new effigy casted by the player
- aura_env.effigyGUID = destGUID -- assign it the new GUID (not sure if ID even changes, but just in case.)
- aura_env.DotTable = {} -- clear the table
- end
- if effigyGUID == nil then
- return false
- end
- -- possibly make back up function here to check if your target or mouseover is the current Effigy and hard update everything based on this instead of combat logs.
- --[[
- if UnitGUID("target") == aura_env.effigyGUID or UnitGUID("mouseover") == aura_env.effigyGUID or UnitGUID("focus") == aura_env.effigyGUID then
- UnitDebuff(agony)......
- UnitDebuff(corruption)
- UnitDebuff(Haunt)
- UnitDebuff(Unstable Affliction).......
- -- basically hard update my tables based on these debuffs.
- end
- ]]
- if (subevent == SAA or subevent == SARe) and (destGUID == aura_env.effigyGUID) then
- -- we have applied a dot to the effigy
- -- get the current time when the dot was applied.
- -- I don't want to hard code the duration of every dot... Need to find a way to use the API to get the duration (this def needs to happen)
- -- in regards to above, possibly hard code the duration in the new auras? (TimeCasted + dot duration), problems occur with pandemic..
- end
- if subevent == SAR then
- -- remove dot from table
- end
- end
- --OnInit: Dot Parser
- function()
- aura_env.playerGUID = UnitGUID("player")
- aura_env.effigyGUID = nil
- aura_env.DotTable = {}
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement