Exemple #1
0
        public static void Execute()
        {
            var Champ = EntityManager.Heroes.Enemies.Where(x => x.Health < HandleDamageIndicator(x));

            if (MenuValue.Harass.UseQ && Q.IsReady())
            {
                var Target = Q.GetTarget(Champ, TargetSeclect.SpellTarget);
                if (Target != null)
                {
                    var pred = Q.GetPrediction(Target);
                    if (pred.CanNext(Q, MenuValue.General.QHitChance, true))
                    {
                        Q.Cast(pred.CastPosition);
                    }
                }
            }
            if (MenuValue.Harass.UseW && W.IsReady())
            {
                var Target = W.GetTarget(Champ, TargetSeclect.SpellTarget);
                if (Target != null)
                {
                    TakeShit_and_Cast(Target);
                }
            }
            if (MenuValue.Harass.UseE && E.IsReady())
            {
                var Target = EQ.GetTarget(Champ, TargetSeclect.SpellTarget);
                if (Target != null)
                {
                    CastE(Target, false, false);
                }
            }
        }
Exemple #2
0
        private static void HarassLogic()
        {
            var  targetQ    = Q.GetTarget();
            var  targetE    = E.GetTarget();
            var  inputQ     = Q.GetPrediction(targetQ);
            var  targetEQ   = EQ.GetTarget();
            var  inputEQ    = EQ.GetPrediction(targetEQ);
            var  targerR    = R.GetTarget();
            var  predR      = R.GetPrediction(targerR);
            bool fullstackQ = GameObjects.Player.GetBuffCount("GwenQ") == 4;

            if (mainMenu["Harass"].GetValue <MenuSlider>("mana%").Value <= GameObjects.Player.ManaPercent)
            {
                if (mainMenu["Harass"].GetValue <MenuBool>("EQuse").Enabled&& targetEQ.IsValidTarget() && inputEQ.Hitchance >= HitChance.High && E.IsReady() && Q.IsReady() && !Q.IsInRange(targetEQ))
                {
                    if ((mainMenu["Harass"].GetValue <MenuBool>("EQfull").Enabled&& fullstackQ) || !mainMenu["Combo"].GetValue <MenuBool>("EQfull").Enabled)
                    {
                        E.Cast(inputEQ.CastPosition);
                        EQ.Cast(inputEQ.CastPosition);
                    }
                }
                if (mainMenu["Harass"].GetValue <MenuBool>("Quse").Enabled&& targetQ.IsValidTarget() && inputQ.Hitchance >= HitChance.High)
                {
                    if ((mainMenu["Harass"].GetValue <MenuBool>("Qfull").Enabled&& fullstackQ) || !mainMenu["Combo"].GetValue <MenuBool>("Qfull").Enabled)
                    {
                        Q.Cast(inputQ.CastPosition);
                    }
                }
            }
        }