Example #1
0
 public static bool CanMove(Obj_AI_Hero target)
 {
     return !(target.HasBuffOfType(BuffType.Stun) || target.HasBuffOfType(BuffType.Snare) || target.HasBuffOfType(BuffType.Knockup) ||
         target.HasBuffOfType(BuffType.Charm) || target.HasBuffOfType(BuffType.Fear) || target.HasBuffOfType(BuffType.Knockback) ||
         target.HasBuffOfType(BuffType.Taunt) || target.HasBuffOfType(BuffType.Suppression) ||
         target.IsStunned || target.IsChannelingImportantSpell());
 }
Example #2
0
 public static bool CanMove(Obj_AI_Hero target)
 {
     if (target.HasBuffOfType(BuffType.Stun) || target.HasBuffOfType(BuffType.Snare) || target.HasBuffOfType(BuffType.Knockup) ||
         target.HasBuffOfType(BuffType.Charm) || target.HasBuffOfType(BuffType.Fear) || target.HasBuffOfType(BuffType.Knockback) ||
         target.HasBuffOfType(BuffType.Taunt) || target.HasBuffOfType(BuffType.Suppression) ||
         target.IsStunned || (target.IsChannelingImportantSpell() && !target.IsMoving) || target.MoveSpeed < 50 || Prediction.GetPrediction(target,0.5f).Hitchance > HitChance.Dashing)
     {
         return false;
     }
     else
         return true;
 }
Example #3
0
 public static bool CanMove(Obj_AI_Hero target)
 {
     if(target.MoveSpeed < 50)
         return false;
     else if (!Player.CanMove || target.IsStunned || target.HasBuffOfType(BuffType.Stun) || target.HasBuffOfType(BuffType.Snare) || target.HasBuffOfType(BuffType.Knockup) ||
         target.HasBuffOfType(BuffType.Knockback) || target.HasBuffOfType(BuffType.Taunt) || target.HasBuffOfType(BuffType.Suppression) || target.IsChannelingImportantSpell())
     {
         return false;
     }
     else
         return true;
 }
Example #4
0
 public static bool CanMove(Obj_AI_Hero target)
 {
     if (target.HasBuffOfType(BuffType.Stun) || target.HasBuffOfType(BuffType.Snare) || target.HasBuffOfType(BuffType.Knockup) ||
         target.HasBuffOfType(BuffType.Charm) || target.HasBuffOfType(BuffType.Fear) || target.HasBuffOfType(BuffType.Knockback) ||
         target.HasBuffOfType(BuffType.Taunt) || target.HasBuffOfType(BuffType.Suppression) ||
         target.IsStunned || target.IsChannelingImportantSpell())
     {
         Program.debug("!canMov" + target.ChampionName);
         return false;
     }
     else
         return true;
 }
Example #5
0
 /// <summary>
 /// Enemy Immobile
 /// </summary>
 /// <param name="target"></param>
 /// <returns></returns>
 public static bool IsEnemyImmobile(Obj_AI_Hero target)
 {
     if (target.HasBuffOfType(BuffType.Stun) || target.HasBuffOfType(BuffType.Snare) ||
         target.HasBuffOfType(BuffType.Knockup) ||
         target.HasBuffOfType(BuffType.Charm) || target.HasBuffOfType(BuffType.Fear) ||
         target.HasBuffOfType(BuffType.Knockback) ||
         target.HasBuffOfType(BuffType.Taunt) || target.HasBuffOfType(BuffType.Suppression) ||
         target.IsStunned || target.IsChannelingImportantSpell())
     {
         return true;
     }
     else
     {
         return false;
     }
         
 }
Example #6
0
 public static bool CanMove(Obj_AI_Hero target)
 {
     if (target.HasBuffOfType(BuffType.Stun) || target.HasBuffOfType(BuffType.Snare) || target.HasBuffOfType(BuffType.Knockup) ||
         target.HasBuffOfType(BuffType.Charm) || target.HasBuffOfType(BuffType.Fear) || target.HasBuffOfType(BuffType.Knockback) ||
         target.HasBuffOfType(BuffType.Taunt) || target.HasBuffOfType(BuffType.Suppression) ||
         target.IsStunned || (target.IsChannelingImportantSpell() && !target.IsMoving) || target.MoveSpeed < 10)
     {
         return false;
     }
     else
         return true;
 }
Example #7
0
        public override void Interrupter_OnPossibleToInterrupt(Obj_AI_Hero sender, Interrupter2.InterruptableTargetEventArgs args)
        {
            if (Config.Item("MINTERRUPTE").GetValue<bool>() && Spells[E].IsInRange(sender))
                Spells[E].Cast();

            if (Config.Item("MINTERRUPTRE").GetValue<bool>() && Spells[R].IsInRange(sender) && sender.IsChannelingImportantSpell())
            {
                if (Spells[R].IsReady() && Spells[E].IsReady())
                {
                    Spells[R].CastOnUnit(sender);
                    Spells[E].Cast();
                }
            }
        }
Example #8
0
 protected override void Interrupter_OnPossibleToInterrupt(Obj_AI_Hero sender, Interrupter2.InterruptableTargetEventArgs args)
 {
     if (sender.IsChannelingImportantSpell())
     {
         if (Spells[R].IsReady() && Helpers.BallMgr.Position.Distance(sender.ServerPosition) < Spells[R].Range)
             Spells[R].Cast(ObjectManager.Player.ServerPosition, true);
         else if (Spells[Q].IsReady() && Spells[R].IsReady() && ObjectManager.Player.ServerPosition.Distance(sender.ServerPosition) < Spells[Q].Range / 2f)
         {
             Spells[Q].Cast(sender, true);
             Spells[W].Cast(ObjectManager.Player.ServerPosition, true);
         }
     }
 }
Example #9
0
 public override void Interrupter_OnPossibleToInterrupt(Obj_AI_Hero sender, Interrupter2.InterruptableTargetEventArgs args)
 {
     if (sender.IsChannelingImportantSpell())
     {
         if (Spells[R].IsReady() && Ball.Position.Distance(sender.ServerPosition) < Spells[R].Range)
             Ball.Post(BallMgr.Command.Shockwave, null);
         else if (Spells[Q].IsReady() && Spells[R].IsReady() && ObjectManager.Player.ServerPosition.Distance(sender.ServerPosition) < Spells[Q].Range / 2f)
         {
             Ball.Post(BallMgr.Command.Attack, sender);
             Ball.Post(BallMgr.Command.Shockwave, null);
         }
     }
 }
Example #10
0
 public static bool IsImmobileTarget(Obj_AI_Hero target)
 {
     return target.Buffs.Count(p => IsImmobilizeBuff(p.Type)) > 0 || target.IsChannelingImportantSpell();
 }
Example #11
0
 public static bool chanellingChecker(Obj_AI_Hero target)
 {
     if (target.HasBuff("MissFortuneBulletTime") || target.HasBuff("katarinaultibroker") || target.HasBuff("missfortunebulletsound")
         || target.IsChannelingImportantSpell())
     {
         return true;
     }
     else
     {
         return false;
     }
 }
Example #12
0
File: Heroe.cs Project: CjShu/L-CC
 private static bool CanMove(Obj_AI_Hero e)
 {
     if (e.HasBuffOfType(BuffType.Stun) || e.HasBuffOfType(BuffType.Snare) || e.HasBuffOfType(BuffType.Knockup) ||
         e.HasBuffOfType(BuffType.Charm) || e.HasBuffOfType(BuffType.Fear) || e.HasBuffOfType(BuffType.Knockback) ||
         e.HasBuffOfType(BuffType.Taunt) || e.HasBuffOfType(BuffType.Suppression) ||
         e.IsStunned || e.IsChannelingImportantSpell() || e.MoveSpeed < 50f)
     {
         return false;
     }
     else
     {
         return true;
     }
 }