Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function()
- local debuff_name = "Agony"
- local time_remaing = ""
- local t_debuff = UnitDebuff("target", debuff_name, null, "PLAYER")
- if t_debuff then
- local time_now = GetTime()
- local time_duration = select(6, UnitDebuff("target", debuff_name, null, "PLAYER"))
- local time_expires = select(7, UnitDebuff("target", debuff_name, null, "PLAYER"))
- local time_left = time_expires - time_now
- time_remaining = string.format("%.1f", time_left)
- local pandemic = time_duration*0.3
- if time_remaining < pandemic then
- return true
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement