Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function brillsum_rot()
- brillsum_target()
- brillsum_attack()
- brillsum_charge()
- brillsum_bfurry()
- brillsum_bshout()
- brillsum_rend()
- brillsum_hstrike()
- end
- function brillsum_target()
- if not UnitExists('target') or UnitHealth('target') == 0 then TargetNearestEnemy() end
- end
- function brillsum_attack()
- if not IsCurrentAction(84) then UseAction(84) end
- end
- function brillsum_bshout()
- if not buffed('battle shout', 'player') then brillsum_cast(62, 10, false) end
- end
- function brillsum_hstrike()
- if UnitAffectingCombat('player') and UnitMana('player') >= 40 then brillsum_cast(25, 15, false) end
- end
- function brillsum_bfurry()
- if UnitAffectingCombat('player') then brillsum_cast(61, 0, false) end
- end
- function brillsum_charge()
- if not UnitAffectingCombat('player') then brillsum_cast(49, 0, true) end
- end
- function brillsum_rend()
- if UnitAffectingCombat('player') and not buffed('rend', 'target') and not has_value(rend_ignore_list, UnitName('target')) then brillsum_cast(26, 10, true) end
- end
- function brillsum_harm()
- if UnitAffectingCombat('player') and not buffed('hamstring', 'target') and not has_value(harm_ignore_list, UnitName('target')) then brillsum_cast(27, 10, true) end
- end
- function brillsum_cast(action_slot, mana_cost, has_range)
- 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
- end
- end
- function has_value(tab, val)
- for index, value in ipairs(tab) do
- if value == val then
- return true
- end
- return false
- end
- end
- function worth_to_dot()
- if UnitHealth('target') > 2000 / 60 * UnitLevel('player') * (GetNumPartyMembers() + 1) then return true else return false end
- end
- rend_ignore_list = {}
- harm_ignore_list = {}
Advertisement
Add Comment
Please, Sign In to add comment