Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Name: Occultist
- Registered Event Handlers: svo system loaded
- Code:
- function Occultist()
- svo.tree.occultistthreeaffs = {
- desc = "Fighting an Occultist and have three (or more) afflictions",
- function()
- if svo.enabledclasses.occultist and occultistAffs() >= 3 then
- return true
- end
- end
- }
- svo.me.disabledtreefunc.occultistthreeaffs = false
- end
- function occultistAffs()
- local ignore = {
- "prone",
- "bleeding",
- "bound",
- "impale",
- "webbed",
- "roped",
- "transfixed"
- }
- local count = 0
- for aff, _ in pairs(svo.affl) do
- if not table.contains(ignore, aff) then
- count = count + 1
- end
- end
- return count
- end
Advertisement
Add Comment
Please, Sign In to add comment