Beispiel #1
0
        private static float GetComboDamage(Obj_AI_Base target)
        {
            double DamageDealt = 0;

            var useQ    = Config.Item("combo_Q").GetValue <bool>();
            var useW    = Config.Item("combo_W").GetValue <bool>();
            var useE    = Config.Item("combo_E").GetValue <bool>();
            var useR    = Config.Item("combo_R").GetValue <bool>();
            var useRUSH = Config.Item("combo_RUSH").GetValue <bool>();
            var useTMT  = Config.Item("item_TMT").GetValue <bool>();
            var useHYD  = Config.Item("item_HYD").GetValue <bool>();
            var useSOTD = Config.Item("item_SOTD").GetValue <bool>();

            // Q
            if (Q.IsReady() && useQ)
            {
                DamageDealt += DamageDealt += Q.GetDamage(target);
            }


            // W
            if (W.IsReady() && useW)
            {
                DamageDealt += W.GetDamage(target);
            }

            // R
            if (R.IsReady() && (useR || useRUSH))
            {
                DamageDealt += R.GetDamage(target);
            }

            // Double AA + SOTD
            int SOTDbonus = SOTD.IsReady() && useSOTD ? 2 : 1;

            DamageDealt += ((Player.GetAutoAttackDamage(target) * 1.1 * (Q.IsReady() ? 2 : 1)) * SOTDbonus);


            //  Tiamat
            if (TMT.IsReady() && useTMT)
            {
                DamageDealt += Player.GetItemDamage(target, Damage.DamageItems.Tiamat);
            }


            // Hydra
            if (HYD.IsReady() && useHYD)
            {
                DamageDealt += Player.GetItemDamage(target, Damage.DamageItems.Hydra);
            }

            // E damage amplification
            double[] Amp = { 0, 1.03, 1.06, 1.09, 1.12, 1.15 };

            if (E.IsReady() && useE)
            {
                DamageDealt += DamageDealt * Amp[E.Level];
            }

            return((float)DamageDealt);
        }
Beispiel #2
0
        private static void doCombo()
        {
            var useW = Config.Item("combo_W").GetValue <bool>();
            var useE = Config.Item("combo_E").GetValue <bool>();
            var useR = Config.Item("combo_R").GetValue <bool>();
            var useI = Config.Item("combo_IGN").GetValue <bool>();

            var useGB   = Config.Item("item_GB").GetValue <bool>();
            var useTMT  = Config.Item("item_TMT").GetValue <bool>();
            var useHYD  = Config.Item("item_HYD").GetValue <bool>();
            var useSOTD = Config.Item("item_SOTD").GetValue <bool>();

            var useRush = Config.Item("combo_RUSH").GetValue <bool>();

            var Target = LockedTarget ?? SimpleTs.GetTarget(1500f, SimpleTs.DamageType.Physical);

            // Ultimate Rush
            if (UltimateRush(Target) && useRush)
            {
                LockedTarget = Target;
                R.Cast();
            }

            // Items
            if (TMT.IsReady() && Target.IsValidTarget(TMT.Range) && useTMT)
            {
                TMT.Cast();
            }

            if (HYD.IsReady() && Target.IsValidTarget(HYD.Range) && useHYD)
            {
                HYD.Cast();
            }

            if (GB.IsReady() && Target.IsValidTarget(LXOrbwalker.GetAutoAttackRange(Player) + (Player.MoveSpeed / 2)) && useGB)
            {
                GB.Cast();
            }

            if (SOTD.IsReady() && Target.IsValidTarget(LXOrbwalker.GetAutoAttackRange(Player)) && useSOTD)
            {
                SOTD.Cast();
            }

            // Spells
            if (E.IsReady() && Target.IsValidTarget(E.Range) && useE)
            {
                E.CastOnUnit(Target);
            }
            else if (W.IsReady() && Target.IsValidTarget(W.Range) && useW)
            {
                W.Cast(Target.Position);
            }
            else if (R.IsReady() && Target.IsValidTarget(R.Range) && useR && R.GetDamage(Target) > Target.Health)
            {
                R.Cast();
            }

            // Auto Ignite
            if (!useI || Ignite == SpellSlot.Unknown || Player.SummonerSpellbook.CanUseSpell(Ignite) != SpellState.Ready)
            {
                return;
            }

            foreach (var enemy in ObjectManager.Get <Obj_AI_Hero>().Where(hero => hero.IsEnemy && hero.IsValidTarget(600f) && !hero.IsDead && hero.Health < Player.GetSummonerSpellDamage(hero, Damage.SummonerSpell.Ignite)).OrderByDescending(SimpleTs.GetPriority))
            {
                Player.SummonerSpellbook.CastSpell(Ignite, enemy);
                return;
            }
        }