Advertisement
Guest User

Untitled

a guest
Oct 28th, 2016
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. TReX.class.shaman_check = function()
  2.  
  3.  
  4. for k, v in pairs(TReX.prios.Shaman) do
  5. if table.index_of(t.affliction, k) then -- if your actually afflicted then swap prio.
  6. if TReX.prios.Current[k] ~= TReX.prios.Shaman[k] then
  7. TReX.prios.switchPrios(k,TReX.prios.Shaman[k])
  8. end
  9. end
  10. end
  11.  
  12. if t.affs.aeon and t.affs.relapsing and t.class["shaman"].enabled then
  13. send("curing predict " .. aff, false)
  14. t.affs.relapsing = false
  15. end
  16.  
  17. local ginseng = t.stacks["ginseng"]
  18. local kelp = t.stacks["kelp"]
  19. local bleedthreshold = TReX.stats.maxh * .071333 --- equals 349.7978~
  20. local throttle_damage = TReX.stats.h - (TReX.stats.maxh * 0.4) --was .025
  21.  
  22. if (ginseng > kelp) or (t.affs.bleeding > throttle_damage / 6.4) or (t.affs.bleeding > bleedthreshold) then
  23. if isPrompt() then TReX.alert.echo("G.T.F.O LOCK COMING (sli) >>>>COAG<<<<", false) end
  24. send("curing priority " .. "haemophilia" .. " " .. TReX.prios.Default["paralysis"], false)
  25. send("curing priority " .. "paralysis" .. " " .. TReX.prios.Default["haemophilia"], false)
  26. elseif (kelp > ginseng) then
  27. TReX.prios.affPrioRestore("haemophilia")
  28. TReX.prios.affPrioRestore("paralysis")
  29. end
  30.  
  31.  
  32. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement