Ejemplo n.º 1
0
 private void OnPossibleToInterrupt(Obj_AI_Hero unit, InterruptableSpell spell)
 {
     if (Player.IsDead || !GetValue <bool>("Interrupt", "Q") ||
         !GetValue <bool>("Interrupt", unit.ChampionName + "_" + spell.Slot) || !Q.IsReady())
     {
         return;
     }
     Q2.CastIfHitchanceEquals(unit, HitChance.High, PacketCast);
 }
Ejemplo n.º 2
0
 private void OnEnemyGapcloser(ActiveGapcloser gapcloser)
 {
     if (Player.IsDead || !GetValue <bool>("AntiGap", "Q") ||
         !GetValue <bool>("AntiGap", gapcloser.Sender.ChampionName + "_" + gapcloser.Slot) || !Q.IsReady())
     {
         return;
     }
     Q2.CastIfHitchanceEquals(gapcloser.Sender, HitChance.High, PacketCast);
 }
Ejemplo n.º 3
0
        public void Combo()
        {
            var target = ARAMTargetSelector.getBestTarget(1400f);

            manageW();
            if (!player.IsBurrowed() &&
                target.IsValidTarget(Q1.Range) &&
                Q1.IsReady())
            {
                Q1.Cast();
            }
            if (player.IsBurrowed() &&
                target.IsValidTarget(Q2.Range) &&
                Q2.IsReady())
            {
                Q2.CastIfHitchanceEquals(target, HitChance.High);
            }
            if (player.IsBurrowed() &&
                target.IsValidTarget(E2.Range) &&
                E2.IsReady())
            {
                E2.CastIfHitchanceEquals(target, HitChance.High);
            }
        }
Ejemplo n.º 4
0
        private void Clear()
        {
            SmiteMob();
            var minionObj = MinionManager.GetMinions(
                E.Range, MinionTypes.All, MinionTeam.NotAlly, MinionOrderTypes.MaxHealth);

            if (!minionObj.Any())
            {
                return;
            }
            if (GetValue <bool>("Clear", "Q") && Q.IsReady())
            {
                var pos = Q.GetCircularFarmLocation(
                    minionObj.Where(i => Q.IsInRange(i, Q.Range + Q.Width / 2)).ToList());
                if (pos.MinionsHit > 1)
                {
                    if (Q.Cast(pos.Position, PacketCast))
                    {
                        return;
                    }
                }
                else
                {
                    var obj = minionObj.FirstOrDefault(i => i.MaxHealth >= 1200);
                    if (obj != null && Q.IsInRange(obj, Q.Range + Q2.Width / 2) &&
                        Q2.CastIfHitchanceEquals(obj, HitChance.Medium, PacketCast))
                    {
                        return;
                    }
                }
            }
            if (GetValue <bool>("Clear", "E") && E.IsReady())
            {
                var pos = E.GetLineFarmLocation(minionObj);
                if (pos.MinionsHit > 0 && E.Cast(pos.Position, PacketCast))
                {
                    return;
                }
            }
            if (GetValue <bool>("Clear", "W") && W.IsReady())
            {
                if (Player.HealthPercent >=
                    (GetValue <bool>("Clear", "WPriority") ? 85 : GetValue <Slider>("Clear", "WHpU").Value))
                {
                    if (!HaveWDmg && W.Cast(PacketCast))
                    {
                        return;
                    }
                }
                else if (HaveWDmg && W.Cast(PacketCast))
                {
                    return;
                }
            }
            if (GetValue <bool>("Clear", "Item"))
            {
                var item = Hydra.IsReady() ? Hydra : Tiamat;
                if (item.IsReady() &&
                    (minionObj.Count(i => item.IsInRange(i)) > 2 ||
                     minionObj.Any(i => i.MaxHealth >= 1200 && i.Distance(Player) < item.Range - 80)))
                {
                    item.Cast();
                }
            }
        }