Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- GuardEvent = function(self, event, unit)
- if event == "UNIT_AURA" then
- if unit == "player" then
- local start, duration, enabled = GetSpellCooldown(self.cdspell)
- if duration and duration > 0 then
- self.timer:Start(start+duration-GetTime(), duration)
- self.timer:StartBarTimer(start+duration-GetTime(), duration)
- else
- self.timer:Stop()
- self.timer:StopBarTimer()
- end
- end
- else
- GlowEvent(self, event, unit)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment