Ejemplo n.º 1
0
 public static void Loading_OnLoadingComplete(EventArgs args)
 {
     if (Player.Instance.BaseSkinName != "Nautilus")
     {
         return;
     }
     SPELLS.Initialize();
     MENUS.Initialize();
     Game.OnTick    += Game_OnTick;
     Drawing.OnDraw += Drawing_OnDraw;
     Interrupter.OnInterruptableSpell += MODES.Interrupter_OnInterruptableSpell;
 }
Ejemplo n.º 2
0
        public static void Combo()
        {
            var tsR = TargetSelector.GetTarget(SPELLS.R.Range, DamageType.Magical);

            foreach (
                var enemy in
                EntityManager.Heroes.Enemies.Where(
                    enemy => ((TargetSelector.SeletedEnabled && TargetSelector.SelectedTarget == enemy) || MENUS.ComboMenu["UseQ_On" + enemy.ChampionName].Cast <CheckBox>().CurrentValue) &&
                    enemy.IsValidTarget(SPELLS.Q.Range + 150) &&
                    !enemy.HasBuffOfType(BuffType.SpellShield)))
            {
                if (SPELLS.Q.IsReady() && MENUS.UseQCombo)
                {
                    var prediction = SPELLS.Q.GetPrediction(enemy);
                    //if (prediction.HitChance >= MENUS.hitchances[0])
                    if (prediction.HitChance >= HitChance.Medium)
                    {
                        // Cast if hitchance is high enough
                        if (prediction.HitChance >= HitChance.High)
                        {
                            SPELLS.Q.Cast(prediction.CastPosition);
                        }
                    }
                }

                if (SPELLS.W.IsReady() && MENUS.UseWCombo && enemy.IsValidTarget(450))
                {
                    SPELLS.W.Cast();
                }

                if (SPELLS.E.IsReady() && MENUS.UseECombo && enemy.IsValidTarget(SPELLS.E.Range))
                {
                    SPELLS.E.Cast();
                }

                if (SPELLS.R.IsReady() && MENUS.UseRCombo && enemy.IsValidTarget(SPELLS.R.Range) && tsR.Health >= SPELLS.GetComboDamage(tsR))
                {
                    var useR = (MENUS.ComboMenu["UseR_On" + enemy.ChampionName].Cast <CheckBox>().CurrentValue);
                    if (useR)
                    {
                        SPELLS.R.Cast(tsR);
                    }
                }
            }
        }