Beispiel #1
0
        public static bool LastHit()
        {
            var minion = ObjectManager.Get <HesaEngine.SDK.GameObjects.Obj_AI_Minion>().OrderBy(a => a.Health).Where(a => a.IsValidTarget(MySpells.E.Range, true)).FirstOrDefault();

            if (minion == null)
            {
                return(false);
            }

            if (MySpells.E.IsReady() && MyMenu.IsChecked("LastHit.E"))
            {
                if (MySpells.E.GetDamage(minion) > MySpells.E.GetHealthPrediction(minion) || minion.Health <= 20)
                {
                    MySpells.E.Cast(minion);
                    return(true);
                }
                else if (MySpells.E.GetDamage(minion) + Cassio.Player.GetAutoAttackDamage(minion) > MySpells.E.GetHealthPrediction(minion) && minion.IsInRange(Cassio.Player, Cassio.Player.GetRealAutoAttackRange()))
                {
                    Cassio.OrbWalk.ForceTarget(minion);
                    return(true);
                }
            }
            else if (Cassio.Player.GetAutoAttackDamage(minion) > minion.Health)
            {
                Cassio.OrbWalk.ForceTarget(minion);
            }
            return(false);
        }
Beispiel #2
0
        public static void Combo()
        {
            if (MyMenu.IsChecked("Combo.R"))
            {
                MySpells.Rlogic();
            }
            if (MyMenu.IsChecked("Combo.E"))
            {
                MySpells.Elogic();
            }
            if (MyMenu.IsChecked("Combo.Q"))
            {
                if (MySpells.Qlogic(0, true))
                {
                    return;
                }
            }
            if (MyMenu.IsChecked("Combo.W"))
            {
                MySpells.Wlogic();
            }

            if (MySpells.Ignite != null && MyMenu.IsChecked("Combo.Ignite"))
            {
                MySpells.IgniteLogic();
            }
        }
Beispiel #3
0
 public static void KS(AIHeroClient target)
 {
     if (target.Health < E.GetDamage(target) && MyMenu.IsChecked("KS.E") && target.IsValidTarget(E.Range))
     {
         E.Cast(target);
     }
     else if (target.Health < Q.GetDamage(target) && MyMenu.IsChecked("KS.Q") && target.IsValidTarget(Q.Range))
     {
         Q.Cast(target);
     }
 }
Beispiel #4
0
        private static void Rtf(AIHeroClient[] enemys, int enemyCount)
        {
            var TStarget = TargetSelector.GetTarget(R.Range, TargetSelector.DamageType.Magical);

            List <int> worth = new List <int>();
            int        i;
            int        enemyFacing;
            int        enemyTouched;
            int        TSValue;

            foreach (var enemy in enemys)
            {
                TSValue = 0;
                var Rpredict = R.GetPrediction(enemy);
                enemyFacing = ObjectManager.Heroes.Enemies.Count(t => t.IsValidTarget(R.Range) &&
                                                                 t.IsFacing(Cassio.Player) &&
                                                                 Rpredict.CollisionObjects.Contains(t) &&
                                                                 t.Health > E.GetDamage(t) + Cassio.Player.GetAutoAttackDamage(t));

                enemyTouched = ObjectManager.Heroes.Enemies.Count(t => t.IsValidTarget(R.Range) &&
                                                                  Rpredict.CollisionObjects.Contains(t) &&
                                                                  t.Health > E.GetDamage(t) + Cassio.Player.GetAutoAttackDamage(t));

                if (TStarget.Health > E.GetDamage(TStarget) + Cassio.Player.GetAutoAttackDamage(TStarget))
                {
                    if (TStarget.IsFacing(Cassio.Player))
                    {
                        TSValue = 2;
                    }
                    if (Rpredict.CollisionObjects.Contains <Obj_AI_Base>(TStarget))
                    {
                        TSValue += 1;
                    }
                }
                worth.Add(4 * enemyFacing + enemyTouched + TSValue);
            }
            i = 0;
            foreach (int Value in worth)
            {
                if (Value == worth.Max())
                {
                    if (Value >= (100.0 / (float)(MyMenu.GetValue("Combo.Rsensi") * enemyCount)))
                    {
                        R.Cast(R.GetPrediction(enemys[i]).CastPosition);
                    }
                }
                i++;
            }
        }
Beispiel #5
0
 public static void LaneClear()
 {
     if (LastHit())
     {
         return;
     }
     if (MyMenu.IsChecked("LaneClear.Q"))
     {
         MySpells.Qlogic(MyMenu.GetValue("LaneClear.QMana"));
     }
     if (MyMenu.IsChecked("LaneClear.E") && MyMenu.GetValue("LaneClear.EMana") < Cassio.Player.ManaPercent)
     {
         MySpells.Elogic(false, MyMenu.IsChecked("LaneClear.Ep"), true);
     }
 }
Beispiel #6
0
        internal static void Init()
        {
            Player = ObjectManager.Me;
            if (Player.ChampionName != "Cassiopeia")
            {
                return;
            }
            MySpells.Init();
            MyMenu.CreateMenus();

            Game.OnTick           += Game_OnTick;
            Orbwalker.AfterAttack += Orbwalker_AfterAttack;

            Chat.Print("Azeryo'Cassio Loaded");
        }
Beispiel #7
0
        public static void Harass()
        {
            if (LastHit())
            {
                return;
            }

            if (MyMenu.IsChecked("Harass.Q"))
            {
                MySpells.Qlogic(MyMenu.GetValue("Harass.QMana"), true);
            }
            if (MyMenu.IsChecked("Harass.E"))
            {
                MySpells.Elogic(true, true);
            }
        }