Guest User

Updated Occultist tree usage

a guest
Jun 25th, 2014
273
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. Name: Occultist
  2. Registered Event Handlers: svo system loaded
  3. Code:
  4. function Occultist()
  5. svo.tree.occultistthreeaffs = {
  6. desc = "Fighting an Occultist and have three (or more) afflictions",
  7.  
  8. function()
  9. if svo.enabledclasses.occultist and occultistAffs() >= 3 then
  10. return true
  11. end
  12. end
  13. }
  14. svo.me.disabledtreefunc.occultistthreeaffs = false
  15. end
  16.  
  17. function occultistAffs()
  18. local ignore = {
  19. "prone",
  20. "bleeding",
  21. "bound",
  22. "impale",
  23. "webbed",
  24. "roped",
  25. "transfixed"
  26. }
  27. local count = 0
  28. for aff, _ in pairs(svo.affl) do
  29. if not table.contains(ignore, aff) then
  30. count = count + 1
  31. end
  32. end
  33. return count
  34. end
Advertisement
Add Comment
Please, Sign In to add comment