Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2017
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. --Custom Trigger
  2. function()
  3.  
  4. local name, rank, icon, castTime, minRange, maxRange, SpellID = GetSpellInfo(11366)
  5. local _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, duration, expirationTime = UnitBuff("player", 209455)
  6.  
  7. local PyroCastTime = (castTime/1000)
  8. local BuffLeft = expirationTime or 0 - GetTime()
  9. if PyroCastTime < BuffLeft then
  10. return true
  11. else
  12. return false
  13. end
  14. end
  15.  
  16. --Custom Untrigger
  17. function()
  18.  
  19. local name, rank, icon, castTime, minRange, maxRange, SpellID = GetSpellInfo(11366)
  20. local _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, duration, expirationTime = UnitBuff("player", 209455)
  21.  
  22. local PyroCastTime = (castTime/1000)
  23. local BuffLeft = expirationTime or 0 - GetTime()
  24. if PyroCastTime > BuffLeft then
  25. return true
  26. else
  27. return false
  28. end
  29. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement