Guest User

Untitled

a guest
Nov 7th, 2024
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.86 KB | None | 0 0
  1. function brillsum_rot()
  2. brillsum_target()
  3. brillsum_attack()
  4. brillsum_charge()
  5. brillsum_bfurry()
  6. brillsum_bshout()
  7. brillsum_rend()
  8. brillsum_hstrike()
  9. end
  10.  
  11. function brillsum_target()
  12. if not UnitExists('target') or UnitHealth('target') == 0 then TargetNearestEnemy() end
  13. end
  14.  
  15. function brillsum_attack()
  16. if not IsCurrentAction(84) then UseAction(84) end
  17. end
  18.  
  19. function brillsum_bshout()
  20. if not buffed('battle shout', 'player') then brillsum_cast(62, 10, false) end
  21. end
  22.  
  23. function brillsum_hstrike()
  24. if UnitAffectingCombat('player') and UnitMana('player') >= 40 then brillsum_cast(25, 15, false) end
  25. end
  26.  
  27. function brillsum_bfurry()
  28. if UnitAffectingCombat('player') then brillsum_cast(61, 0, false) end
  29. end
  30.  
  31. function brillsum_charge()
  32. if not UnitAffectingCombat('player') then brillsum_cast(49, 0, true) end
  33. end
  34.  
  35. function brillsum_rend()
  36. if UnitAffectingCombat('player') and not buffed('rend', 'target') and not has_value(rend_ignore_list, UnitName('target')) then brillsum_cast(26, 10, true) end
  37. end
  38.  
  39. function brillsum_harm()
  40. if UnitAffectingCombat('player') and not buffed('hamstring', 'target') and not has_value(harm_ignore_list, UnitName('target')) then brillsum_cast(27, 10, true) end
  41. end
  42.  
  43. function brillsum_cast(action_slot, mana_cost, has_range)
  44. if GetActionCooldown(action_slot) == 0 and UnitMana('player') >= mana_cost then if not has_range then UseAction(action_slot) else if IsActionInRange(action_slot) == 1 then UseAction(action_slot) end end
  45. end
  46. end
  47.  
  48. function has_value(tab, val)
  49. for index, value in ipairs(tab) do
  50. if value == val then
  51. return true
  52. end
  53. return false
  54. end
  55. end
  56.  
  57. function worth_to_dot()
  58. if UnitHealth('target') > 2000 / 60 * UnitLevel('player') * (GetNumPartyMembers() + 1) then return true else return false end
  59. end
  60.  
  61. rend_ignore_list = {}
  62.  
  63. harm_ignore_list = {}
Advertisement
Add Comment
Please, Sign In to add comment