Esempio n. 1
0
        static void ExecuteComboMode()
        {
            if (Target.IsValidTarget(Q.Range) && CommonHelper.SpellRStatus == CommonHelper.SpellRName.R2xQ && Target.Health < ComboDamage2xQ(Target))
            {
                Q2.CastOnUnit(Target);
            }

            if (Target.IsValidTarget(W.Range) && CommonHelper.SpellRStatus == CommonHelper.SpellRName.R2xW && Target.Health < ComboDamage2xW(Target))
            {
                PlayerSpells.CastW2(Target.Position);
            }

            //ExecuteFarCombo();

            if (MenuLocal.Item("Combo.Ignite").GetValue <StringList>().SelectedIndex == 1)
            {
                if (IgniteSlot != SpellSlot.Unknown &&
                    ObjectManager.Player.Spellbook.CanUseSpell(IgniteSlot) == SpellState.Ready)
                {
                    if (Target.IsValidTarget(650) &&
                        ObjectManager.Player.GetSummonerSpellDamage(Target, Damage.SummonerSpell.Ignite) + 150 >=
                        Target.Health && (!Q.IsReady() || W.StillJumped()))
                    {
                        ObjectManager.Player.Spellbook.CastSpell(IgniteSlot, Target);
                    }
                }
            }

            switch (ComboMode)
            {
            case ComboMode.Mode2xQ:
            {
                ActiveComboMode = ActiveComboMode.Mode2xQ;
                ExecuteMode2xQ();
                break;
            }

            case ComboMode.Mode2xW:
            {
                ActiveComboMode = ActiveComboMode.Mode2xW;
                ExecuteMode2xW();
                break;
            }

            case ComboMode.ModeAuto:
            {
                ActiveComboMode = ActiveComboMode.ModeAuto;
                ExecuteModeAuto();
                break;
            }
            }

            ExecuteSpells();
            ExecuteCompleteCombo();
        }
Esempio n. 2
0
        private static void ExecuteCompleteCombo()
        {
            if (ComboMode == ComboMode.Mode2xQ && !Q.IsReady() && R.IsReady())
            {
                Champion.PlayerSpells.Q2.CastOnUnit(Target);
            }

            if (ComboMode == ComboMode.Mode2xW && !W.IsReady() && W2.IsReady() && !W2.StillJumped())
            {
                PlayerSpells.CastW2(Target.Position);
            }
        }