예제 #1
0
파일: Velkoz.cs 프로젝트: wade1990/PortAIO
        public static void OnCombo()
        {
            var target = TargetSelector.GetTarget(Spells.R.Range, TargetSelector.DamageType.Magical);

            if (target != null)
            {
                if (Spells.Q.IsReady() && Utilities.Enabled("q.combo") && target.IsValidTarget(Spells.Q.Range) && !Utilities.IsInvulnerable(target, DamageType.Magical))
                {
                    Spells.Q.HikiCast(target, Utilities.HikiChance("hitchance"), "prediction", Menus.Config);
                }

                if (Spells.W.IsReady() && Utilities.Enabled("w.combo") && target.IsValidTarget(Spells.W.Range))
                {
                    Spells.W.HikiCast(target, Utilities.HikiChance("hitchance"), "prediction", Menus.Config);
                }

                if (Spells.E.IsReady() && Utilities.Enabled("e.combo") && target.IsValidTarget(Spells.E.Range) && !Utilities.IsInvulnerable(target, DamageType.Magical))
                {
                    Spells.E.HikiCast(target, Utilities.HikiChance("hitchance"), "prediction", Menus.Config);
                }
            }
        }
예제 #2
0
파일: Velkoz.cs 프로젝트: wade1990/PortAIO
        private static void OnMixed()
        {
            if (ObjectManager.Player.ManaPercent < Utilities.Slider("harassmana"))
            {
                return;
            }

            var target = TargetSelector.GetTarget(Spells.E.Range, TargetSelector.DamageType.Magical);

            if (target != null)
            {
                if (Spells.Q.IsReady() && Utilities.Enabled("q.harass") && target.IsValidTarget(Spells.Q.Range) && !Utilities.IsInvulnerable(target, DamageType.Magical))
                {
                    Spells.Q.HikiCast(target, Utilities.HikiChance("hitchance"), "prediction", Menus.Config);
                }

                if (Spells.E.IsReady() && Utilities.Enabled("e.harass") && target.IsValidTarget(Spells.E.Range) && !Utilities.IsInvulnerable(target, DamageType.Magical))
                {
                    Spells.E.HikiCast(target, Utilities.HikiChance("hitchance"), "prediction", Menus.Config);
                }
            }
        }