Exemple #1
0
        void StunE()
        {
            var enemies = EntityManager.Heroes.Enemies.OrderByDescending
                              (a => a.HealthPercent).Where(a => !a.IsMe && a.IsValidTarget() && a.Distance(Player) <= E.Range);
            var target = TargetSelector.GetTarget(E.Range, DamageType.Magical);

            if (!target.IsValidTarget())
            {
                return;
            }
            if (E.IsReady() && target.IsValidTarget(650))
            {
                foreach (var eenemies in enemies)
                {
                    var useE = TarickTheTrollMeNu.ComboMenu["combo.E"
                                                            + eenemies.ChampionName].Cast <CheckBox>().CurrentValue;
                    if (useE && Player.ManaPercent >= TarickTheTrollMeNu.Harassmana())
                    {
                        var predE = E.GetPrediction(target);
                        if (predE.HitChance >= HitChance.Medium)
                        {
                            E.Cast(predE.CastPosition);
                        }
                        else if (predE.HitChance >= HitChance.Dashing)
                        {
                            E.Cast(predE.CastPosition);
                        }
                        else if (predE.HitChance >= HitChance.Immobile)
                        {
                            E.Cast(predE.CastPosition);
                        }
                    }
                }
            }
        }
Exemple #2
0
        private static void OnHarrass()
        {
            var enemies = EntityManager.Heroes.Enemies.OrderByDescending
                              (a => a.HealthPercent).Where(a => !a.IsMe && a.IsValidTarget() && a.Distance(Player) <= E.Range);
            var target = TargetSelector.GetTarget(Q.Range, DamageType.Magical);

            if (!target.IsValidTarget())
            {
                return;
            }

            if (E.IsReady() && target.IsValidTarget(E.Range))
            {
                foreach (var eenemies in enemies)
                {
                    var useE = TarickTheTrollMeNu.HarassMeNu["harass.E"
                                                             + eenemies.ChampionName].Cast <CheckBox>().CurrentValue;
                    if (useE && Player.ManaPercent >= TarickTheTrollMeNu.Harassmana())
                    {
                        var predeharass = E.GetPrediction(target);
                        if (predeharass.HitChance >= HitChance.High)
                        {
                            E.Cast(predeharass.CastPosition);
                        }
                    }
                }
            }
        }