Ejemplo n.º 1
0
        static void Obj_AI_Hero_OnProcessSpellCast(Obj_AI_Base sender, GameObjectProcessSpellCastEventArgs args)
        {
            if (Player.IsDead) // 바람장막
            {
                return;
            }

            if (!sender.IsMe)
            {
                SharpDX.Vector2 castVec = Player.ServerPosition.To2D() +
                                          SharpDX.Vector2.Normalize(args.Start.To2D() - Player.Position.To2D()) * (100f);
                if (IsSkill(args.SData.Name) && (args.Target.IsMe || !sender.IsAlly) && W.IsReady() &&
                    Player.Distance(args.End) < 250 && AIO_Menu.Champion.Misc.getBoolValue("AutoW"))
                {
                    W.Cast(castVec);
                }
            }
            else
            {
                if ((Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Combo && AIO_Menu.Champion.Combo.UseQ || Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Mixed && AIO_Menu.Champion.Harass.UseQ))
                {
                    if (args.SData.Name == Player.Spellbook.GetSpell(SpellSlot.E).Name&& HeroManager.Enemies.Any(x => x.IsValidTarget(EQ.Range)))
                    {
                        EQ.Cast();
                    }
                }
            }
        }
Ejemplo n.º 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);
                    }
                }
            }
        }