Exemplo n.º 1
0
        private static void OnCombo()
        {
            Target = TargetSelector.GetTarget(700, DamageType.Magical);

            if (Target == null)
            {
                return;
            }
            if (!Target.IsValidTarget())
            {
                return;
            }
            var alvo = TargetSelector.GetTarget(1000, DamageType.Physical);

            if (alvo == null || !alvo.IsValid || alvo.IsDead || alvo.IsZombie || _Player.IsDead)
            {
                return;
            }


            if (E.IsReady() && KindredMenu.kincombo["combo.E"].Cast <CheckBox>().CurrentValue&& alvo.Distance(_Player) <= 500)
            {
                E.Cast(alvo);
            }

            if (W.State == SpellState.Ready && KindredMenu.kincombo["combo.W"].Cast <CheckBox>().CurrentValue&& alvo.Distance(_Player) <= 700)
            {
                W.Cast();
            }

            if (Q.IsReady() && KindredMenu.kincombo["combo.Q"].Cast <CheckBox>().CurrentValue&& alvo.Distance(_Player) <= Q.Range + 500)
            {
                Player.CastSpell(SpellSlot.Q, Game.CursorPos);
            }


            if ((ObjectManager.Player.CountEnemiesInRange(ObjectManager.Player.AttackRange) >= KindredMenu.itemsYOUMUSenemys() || Player.Instance.HealthPercent >= KindredMenu.itemsYOUMUShp()) && KindredActivator.youmus.IsReady() && KindredMenu.kincombo["combo.Youmuss"].Cast <CheckBox>().CurrentValue&& KindredActivator.youmus.IsOwned())
            {
                KindredActivator.youmus.Cast();
                return;
            }
            if (Player.Instance.HealthPercent <= KindredMenu.itemsbilgewaterHp() && KindredMenu.kincombo["combo.Bilgewater"].Cast <CheckBox>().CurrentValue&& KindredActivator.bilgewater.IsReady() && KindredActivator.bilgewater.IsOwned())
            {
                KindredActivator.bilgewater.Cast(Target);
                return;
            }

            if (Player.Instance.HealthPercent <= KindredMenu.itemsBOTRKhp() && KindredMenu.kincombo["combo.Botrk"].Cast <CheckBox>().CurrentValue&& KindredActivator.botrk.IsReady() && KindredActivator.botrk.IsOwned())
            {
                KindredActivator.botrk.Cast(Target);
            }
        }