Ejemplo n.º 1
0
        private void OnPlayAnimation(Obj_AI_Base sender, GameObjectPlayAnimationEventArgs Args)
        {
            if (!sender.IsMe || Orbwalker.ActiveMode != Orbwalking.OrbwalkingMode.Burst)
            {
                return;
            }

            if (Args.Animation == "Spell3")
            {
                Orbwalking.ResetAutoAttackTimer();
                canE = false;

                if (Menu.GetBool("BurstER") && TargetSelector.GetSelectedTarget() != null && R.IsReady())
                {
                    var target = TargetSelector.GetSelectedTarget();

                    if (target != null)
                    {
                        Utility.DelayAction.Add(Game.Ping, () => R.Cast(target.ServerPosition, true));
                    }
                }
            }

            if ((Args.Animation == "Spell4" || Args.Animation == "785121b3") && TargetSelector.GetSelectedTarget() != null &&
                !Menu.GetBool("BurstER") && E.IsReady())
            {
                E.Cast(TargetSelector.GetSelectedTarget().Position, true);
            }
        }
Ejemplo n.º 2
0
        private void OnDoCast(Obj_AI_Base sender, GameObjectProcessSpellCastEventArgs Args)
        {
            if (!sender.IsMe || !Orbwalking.IsAutoAttack(Args.SData.Name))
            {
                return;
            }

            switch (Orbwalker.ActiveMode)
            {
            case Orbwalking.OrbwalkingMode.Combo:
                if (Menu.GetBool("ComboQ"))
                {
                    var target = (Obj_AI_Hero)Args.Target;

                    if (target != null && !target.IsDead && !target.IsZombie)
                    {
                        if (Me.HasBuff("asheqcastready"))
                        {
                            Q.Cast();
                            Orbwalking.ResetAutoAttackTimer();
                        }
                    }
                }
                break;

            case Orbwalking.OrbwalkingMode.LaneClear:
                if (ManaManager.HasEnoughMana(Menu.GetSlider("JungleClearMana")) && ManaManager.SpellFarm)
                {
                    if (Menu.GetBool("JungleClearQ") && Args.Target is Obj_AI_Minion)
                    {
                        var mobs = MinionManager.GetMinions(Me.Position, Orbwalking.GetRealAutoAttackRange(Me),
                                                            MinionTypes.All, MinionTeam.Neutral, MinionOrderTypes.MaxHealth);

                        if (mobs.Any())
                        {
                            foreach (var mob in mobs)
                            {
                                if (!mob.IsValidTarget(Orbwalking.GetRealAutoAttackRange(Me)) ||
                                    !(mob.Health > Me.GetAutoAttackDamage(mob) * 2))
                                {
                                    continue;
                                }

                                if (Me.HasBuff("asheqcastready"))
                                {
                                    Q.Cast();
                                    Orbwalking.ResetAutoAttackTimer();
                                }
                            }
                        }
                    }
                }
                break;
            }
        }
Ejemplo n.º 3
0
        private void OnProcessSpellCast(Obj_AI_Base sender, GameObjectProcessSpellCastEventArgs Args)
        {
            if (!sender.IsMe)
            {
                return;
            }

            if (Args.SData.Name.Contains("GravesMove"))
            {
                Orbwalking.ResetAutoAttackTimer();
                canE = false;
            }
        }
Ejemplo n.º 4
0
        private void LaneClearW()
        {
            if (ManaManager.HasEnoughMana(Menu.GetSlider("LaneClearMana")) && ManaManager.SpellFarm)
            {
                if (Menu.GetBool("LaneClearW") && W.IsReady())
                {
                    var minions = MinionManager.GetMinions(Me.Position, Orbwalking.GetRealAutoAttackRange(Me));

                    if (minions.Count >= 3)
                    {
                        W.Cast();
                        Orbwalking.ResetAutoAttackTimer();
                    }
                }
            }
        }
Ejemplo n.º 5
0
        private void JungleClearW()
        {
            if (ManaManager.HasEnoughMana(Menu.GetSlider("JungleClearMana")) && ManaManager.SpellFarm)
            {
                if (Menu.GetBool("JungleClearW") && W.IsReady())
                {
                    var Mobs = MinionManager.GetMinions(Me.Position, Orbwalking.GetRealAutoAttackRange(Me),
                                                        MinionTypes.All, MinionTeam.Neutral, MinionOrderTypes.MaxHealth);

                    if (Mobs.Any())
                    {
                        W.Cast();
                        Orbwalking.ResetAutoAttackTimer();
                    }
                }
            }
        }
Ejemplo n.º 6
0
        private void OnDoCast(Obj_AI_Base sender, GameObjectProcessSpellCastEventArgs Args)
        {
            if (!sender.IsMe || !Orbwalking.IsAutoAttack(Args.SData.Name))
            {
                return;
            }

            if (Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Combo)
            {
                var hero = Args.Target as Obj_AI_Hero;

                if (hero != null && Menu.GetBool("ComboW") && W.IsReady())
                {
                    var WTarget = hero;

                    if (WTarget.IsValidTarget(Orbwalking.GetRealAutoAttackRange(Me)) && Me.CanAttack)
                    {
                        W.Cast();
                        Orbwalking.ResetAutoAttackTimer();
                    }
                }
            }
            else if (Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.LaneClear)
            {
                if (Args.Target is Obj_AI_Minion)
                {
                    LaneClearW();
                    JungleClearW();
                }
                else if (Args.Target is Obj_AI_Turret || Args.Target.Type == GameObjectType.obj_AI_Turret)
                {
                    if (ManaManager.HasEnoughMana(Menu.GetSlider("LaneClearMana")) && ManaManager.SpellFarm)
                    {
                        if (Menu.GetBool("LaneClearWTurret") && W.IsReady() &&
                            Me.CountEnemiesInRange(1000) == 0)
                        {
                            W.Cast();
                            Orbwalking.ResetAutoAttackTimer();
                        }
                    }
                }
            }
        }