Example #1
0
        private void LastHit()
        {
            if (ObjectManager.Player.ManaPercent
                < TahmKenchChampion.GetSubMenu("SAssembliesChampionsTahmKenchFarm")
                .SubMenu("SAssembliesChampionsTahmKenchFarmLasthit")
                .Item("SAssembliesChampionsTahmKenchFarmLasthitMinMana")
                .GetValue <Slider>()
                .Value)
            {
                return;
            }

            var minion = MinionManager.GetMinions(CustomSpell.Q.Range, MinionTypes.All, MinionTeam.NotAlly)
                         .FirstOrDefault(target => ObjectManager.Player.GetSpellDamage(target, SpellSlot.Q) >= target.Health);

            if (minion != null)
            {
                if (CustomSpell.Q.IsReady() && minion.Distance(ObjectManager.Player) >= ObjectManager.Player.AttackRange &&
                    TahmKenchChampion.GetSubMenu("SAssembliesChampionsTahmKenchFarm")
                    .SubMenu("SAssembliesChampionsTahmKenchFarmLasthit")
                    .Item("SAssembliesChampionsTahmKenchFarmLasthitQ")
                    .GetValue <bool>())
                {
                    CustomSpell.CastSpell(CustomSpell.Q, minion, HitChance.High);
                }
            }
        }
Example #2
0
        private void JungleClear()
        {
            if (TahmKenchChampion.GetSubMenu("SAssembliesChampionsTahmKenchFarm")
                .SubMenu("SAssembliesChampionsTahmKenchFarmJungle")
                .Item("SAssembliesChampionsTahmKenchFarmJungleQ")
                .GetValue <bool>() && CustomSpell.Q.IsReady() &&
                ObjectManager.Player.ManaPercent
                >= TahmKenchChampion.GetSubMenu("SAssembliesChampionsTahmKenchFarm")
                .SubMenu("SAssembliesChampionsTahmKenchFarmJungle")
                .Item("SAssembliesChampionsTahmKenchFarmJungleMinMana")
                .GetValue <Slider>()
                .Value)
            {
                var minion = MinionManager.GetMinions(CustomSpell.Q.Range, MinionTypes.All, MinionTeam.Neutral)
                             .FirstOrDefault();

                if (minion != null)
                {
                    if (CustomSpell.Q.IsReady())
                    {
                        CustomSpell.CastSpell(CustomSpell.Q, minion, HitChance.High);
                    }
                }
            }

            if (TahmKenchChampion.GetSubMenu("SAssembliesChampionsTahmKenchFarm")
                .SubMenu("SAssembliesChampionsTahmKenchFarmJungle")
                .Item("SAssembliesChampionsTahmKenchFarmJungleW")
                .GetValue <bool>() && CustomSpell.W.IsReady())
            {
                if (ObjectManager.Player.ManaPercent
                    < TahmKenchChampion.GetSubMenu("SAssembliesChampionsTahmKenchFarm")
                    .SubMenu("SAssembliesChampionsTahmKenchFarmJungle")
                    .Item("SAssembliesChampionsTahmKenchFarmJungleMinMana")
                    .GetValue <Slider>()
                    .Value&& this.swallowedUnit != SwallowedUnit.Minion)
                {
                    return;
                }

                var minion  = MinionManager.GetMinions(CustomSpell.W.Range, MinionTypes.All, MinionTeam.Neutral).FirstOrDefault();
                var minions = MinionManager.GetMinions(CustomSpell.W2.Range, MinionTypes.All, MinionTeam.Neutral);

                if (minion != null)
                {
                    if (this.swallowedUnit == SwallowedUnit.None && minion != null)
                    {
                        CustomSpell.W.CastOnUnit(minion);
                    }
                    else if (this.swallowedUnit == SwallowedUnit.Minion && minions.Count > 0)
                    {
                        CustomSpell.W2.Cast(CustomSpell.W2.GetCircularFarmLocation(minions).Position);
                    }
                }
            }
        }
Example #3
0
        private void Harass()
        {
            if (ObjectManager.Player.ManaPercent
                < TahmKenchChampion.GetSubMenu("SAssembliesChampionsTahmKenchHarass")
                .Item("SAssembliesChampionsTahmKenchHarassMinMana")
                .GetValue <Slider>()
                .Value)
            {
                return;
            }

            if (CustomSpell.Q.IsReady() &&
                TahmKenchChampion.GetSubMenu("SAssembliesChampionsTahmKenchHarass")
                .Item("SAssembliesChampionsTahmKenchHarassQ")
                .GetValue <bool>())
            {
                var target = TargetSelector.GetTarget(CustomSpell.Q.Range, TargetSelector.DamageType.Magical);

                if (target != null)
                {
                    CustomSpell.CastSpell(CustomSpell.Q, target, HitChance.High);
                }
            }

            var closestMinion = MinionManager.GetMinions(250, MinionTypes.All, MinionTeam.NotAlly).FirstOrDefault();

            if (CustomSpell.W.IsReady() &&
                TahmKenchChampion.GetSubMenu("SAssembliesChampionsTahmKenchHarass")
                .Item("SAssembliesChampionsTahmKenchHarassW")
                .GetValue <bool>())
            {
                var target = TargetSelector.GetTarget(CustomSpell.W2.Range, TargetSelector.DamageType.Magical);
                if (target != null)
                {
                    if (this.swallowedUnit == SwallowedUnit.None && closestMinion != null)
                    {
                        CustomSpell.W.CastOnUnit(closestMinion);
                    }
                    else if (this.swallowedUnit == SwallowedUnit.Minion)
                    {
                        CustomSpell.W2.CastIfHitchanceEquals(target, HitChance.High);
                    }
                }
            }
        }