Advertisement
Guest User

Untitled

a guest
Jul 11th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using cleanCore;
  6. namespace Bot
  7. {
  8.  
  9.     class ArmsWarriorBehaviour : IBehaviour
  10.     {
  11.  
  12.         public const int
  13.  
  14.             Demoralizing_Shout = 1160,
  15.  
  16.             Charge = 100,
  17.  
  18.             Victory_Rush = 34428,
  19.  
  20.             Throwdown = 85388,
  21.  
  22.             Colossus_Smash = 86346,
  23.  
  24.             Rend = 772,
  25.  
  26.             Mortal_Strike = 12294,
  27.  
  28.             Overpower = 7384,
  29.  
  30.             Heroic_Strike = 78,
  31.  
  32.             Thunder_Clap = 6343;
  33.  
  34.  
  35.         public void OnCombat()
  36.         {
  37.             //Recast Buff Commanding Shout
  38.             if (!Me.HasBuff(Commanding_Shout))
  39.             {
  40.                 Me.CastOnSelf(Commanding_Shout);
  41.             }
  42.  
  43.             //Check if the mosnter has all my dots on it
  44.  
  45.             if (!currentTarget.HasAura(Rend))
  46.             {
  47.                 Me.CastOnTarget(Rend);
  48.             }
  49.             else if (!currentTarget.HasAura(Mortal_Strike))
  50.             {
  51.                 Me.CastOnTarget(Mortal_Strike);
  52.             }
  53.         }
  54.         public void OnUnit(WoWUnit unit)
  55.         {
  56.             AttackingUnits.Add(unit);
  57.  
  58.             if (currentTarget == null)
  59.             {
  60.  
  61.                 currentTarget = unit;
  62.  
  63.                 //Set this unit as our target (select it)
  64.  
  65.                 currentTarget.Select();
  66.             }
  67.         }
  68.     }
  69. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement