Advertisement
Guest User

Untitled

a guest
Nov 24th, 2017
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.25 KB | None | 0 0
  1.  
  2. function(t)
  3. --if frost:
  4. --t1: Cold Heart==20, t2: Cold Heart>=10, t3: Pillar Of Frost<=3
  5. --t4: Unholy Strength, t5: Concordance
  6. --t7: POF CD > 6, t8: CH >16, t9: POF running, t10: POF off cd
  7. local aura_env = aura_env
  8. if GetSpecialization() == 2 then
  9. if t[1] then
  10. --20 stacks CH
  11. if t[7] and t[4] then
  12. --if POF on CD for a bit and UNH STR is up
  13. PlaySoundFile("Interface\\AddOns\\WeakAuras\\Media\\Sounds\\TempleBellHuge.ogg")
  14. return true
  15. end
  16.  
  17. if t[9] or t[10] or t[6] then
  18. --if POF ready, or POF running, or Timer expires
  19. PlaySoundFile("Interface\\AddOns\\WeakAuras\\Media\\Sounds\\TempleBellHuge.ogg")
  20. return true
  21. else --need to wait
  22. -- CH at 20 stacks and need to wait 5 seconds rechecking to see if theres a proc otherwise tell to cast
  23. C_Timer.After(5,function() WeakAuras.ScanEvents("CHAINS_TIMEOUT") end)
  24. end
  25. elseif t[2] and t[3] then
  26. -->10 stacks and POF <= 3
  27. PlaySoundFile("Interface\\AddOns\\WeakAuras\\Media\\Sounds\\TempleBellHuge.ogg")
  28. return true
  29. elseif t[8] and t[4] and t[7] then
  30. -- CH>16, UH up, POF on CD
  31. PlaySoundFile("Interface\\AddOns\\WeakAuras\\Media\\Sounds\\TempleBellHuge.ogg")
  32. return true
  33. end
  34. elseif GetSpecialization() == 3 then
  35. --if unholy:
  36. --t4: Unholy Strength, t5: Concordance
  37. --if t1==20 and (t4 or t5) playsoundfile and return true
  38. if t[1] then
  39. if t[4] or t[5] or t[6] then
  40. PlaySoundFile("Interface\\AddOns\\WeakAuras\\Media\\Sounds\\TempleBellHuge.ogg")
  41. return true
  42. else --need to wait
  43. C_Timer.After(5,function() WeakAuras.ScanEvents("CHAINS_TIMEOUT") end)
  44. end
  45.  
  46. end
  47.  
  48. end
  49. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement