Advertisement
berlin

Untitled

Jan 1st, 2012
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.67 KB | None | 0 0
  1. local playerGUID = UnitGUID("player")
  2. local abICD = CreateFrame("Cooldown", nil, MultiBarBottomRightButton3, "CooldownFrameTemplate")
  3.  
  4. function abICD:COMBAT_LOG_EVENT_UNFILTERED(...)
  5.     local timestamp, event, hideCaster, sourceGUID, sourceName, sourceFlags, sourceRaidFlags,
  6.         destGUID, destName, destFlags, destRaidFlags, spellID, spellName = ...
  7.     if event == "SPELL_CAST_SUCCESS" and sourceGUID == playerGUID
  8.         and spellName == "Angelic Bulwark" then
  9.         CooldownFrame_SetTimer(self, GetTime(), 90, 1)
  10.     end
  11. end
  12.  
  13. abICD:SetScript("OnEvent", function(self, event, ...) return self[event](self, ...) end)
  14. abICD:RegisterEvent("COMBAT_LOG_EVENT_UNFILTERED")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement