Beispiel #1
0
        public static void SmartR()
        {
            var RRAnge = 800 + 300 * _Player.Spellbook.GetSpell(SpellSlot.R).Level;
            var target = TargetSelector.GetTarget(RRAnge, DamageType.Magical);

            if (target == null || !target.IsValidTarget(RRAnge) || Orbwalker.IsAutoAttacking)
            {
                return;
            }

            /*
             *  Mana & Dmg Update
             */
            MananDamage.SetMana();
            MananDamage.SetDmg(target);
            if (target.Health < Rdmg)
            {
                CastwithPred(R, target);
            }
            else if (Rdmg * 2 > target.Health && _Player.Mana > Rmana * 3)
            {
                CastwithPred(R, target);
            }
            else if (_Player.Mana > Rmana + Wmana + Emana + Qmana)
            {
                CastwithPred(R, target);
            }
            else if (_Player.Mana > Rmana * 3)
            {
                if (immobileTarget(target))
                {
                    CastwithPred(R, target);
                }
            }
        }
Beispiel #2
0
        public static void SmartE()
        {
            var target = TargetSelector.GetTarget(E.Range, DamageType.Physical);

            if (target.IsValidTarget() && target != null)
            {
                /*
                 * Mana & Damage Manager
                 */
                MananDamage.SetMana();
                MananDamage.SetDmg(target);

                if (Edmg > target.Health)
                {
                    CastwithPred(E, target);
                }
                else if (Edmg + Qdmg > target.Health && Q.IsReady())
                {
                    CastwithPred(E, target);
                }
                else if (_Player.Mana > Rmana + Wmana + Emana + Qmana + Emana)
                {
                    CastwithPred(E, target);
                }
                else if (_Player.Mana > Rmana + Qmana + Emana)
                {
                    if (immobileTarget(target))
                    {
                        E.Cast(target);
                    }
                }
            }
        }
Beispiel #3
0
        public static void SmartQ()
        {
            var target = TargetSelector.GetTarget(Q.Range, DamageType.Physical);

            if (target.IsValidTarget() && target != null)
            {
                /*
                 * Mana & Dmg Update
                 */
                MananDamage.SetMana();
                MananDamage.SetDmg(target);

                if (target.IsValidTarget(Q.Range) && Qdmg + Edmg > target.Health)
                {
                    /*
                     * get Spell Prediction
                     */
                    CastwithPred(Q, target);
                }

                /*
                 * Q with Mana Control
                 */
                else if (_Player.Mana > Rmana + Qmana * 2 + Emana)
                {
                    CastwithPred(Q, target);
                }
                else if (_Player.Mana > Rmana + Qmana + Emana)
                {
                    if (immobileTarget(target))
                    {
                        CastwithPred(Q, target);
                    }
                }
            }
        }