Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using cleanCore;
- namespace Bot
- {
- class ArmsWarriorBehaviour : IBehaviour
- {
- public const int
- Demoralizing_Shout = 1160,
- Charge = 100,
- Victory_Rush = 34428,
- Throwdown = 85388,
- Colossus_Smash = 86346,
- Rend = 772,
- Mortal_Strike = 12294,
- Overpower = 7384,
- Heroic_Strike = 78,
- Thunder_Clap = 6343;
- public void OnCombat()
- {
- //Recast Buff Commanding Shout
- if (!Me.HasBuff(Commanding_Shout))
- {
- Me.CastOnSelf(Commanding_Shout);
- }
- //Check if the mosnter has all my dots on it
- if (!currentTarget.HasAura(Rend))
- {
- Me.CastOnTarget(Rend);
- }
- else if (!currentTarget.HasAura(Mortal_Strike))
- {
- Me.CastOnTarget(Mortal_Strike);
- }
- }
- public void OnUnit(WoWUnit unit)
- {
- AttackingUnits.Add(unit);
- if (currentTarget == null)
- {
- currentTarget = unit;
- //Set this unit as our target (select it)
- currentTarget.Select();
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement