예제 #1
0
        private static void Loading_OnLoadingComplete(EventArgs bla)
        {
            if (Player.Instance.Hero != Champion.Ziggs)
            {
                return;
            }
            Menus.CreateMenu();
            SpellsManager.InitializeSpells();
            ModeManager.InitializeModes();
            DrawingsManager.InitializeDrawings();



            Chat.Print("<font color='#FA5858'>Wladis Ziggs loaded</font>");
            Chat.Print("Credits to Uzumaki Boruto ");
        }
예제 #2
0
        public static void Execute4()
        {
            var qtarget = TargetSelector.GetTarget(SpellsManager.Q.Range, DamageType.Magical);

            if ((qtarget == null) || qtarget.IsInvulnerable)
            {
                return;
            }
            //Cast Q
            if (SpellsManager.Q.IsReady() && qtarget.IsValidTarget((SpellsManager.Q.Range)) &&
                Prediction.Health.GetPrediction(qtarget, SpellsManager.Q.CastDelay) <=
                SpellsManager.GetRealDamage(qtarget, SpellSlot.Q))
            {
                var prediction = SpellsManager.Q.GetPrediction(qtarget);
                SpellsManager.Q.Cast(prediction.CastPosition);
            }
        }
예제 #3
0
        public static void Execute7()
        {
            var rtarget = TargetSelector.GetTarget(SpellsManager.R.Range, DamageType.Magical);

            if ((rtarget == null) || rtarget.IsInvulnerable)
            {
                return;
            }
            //Cast R
            if (SpellsManager.R.IsReady() && rtarget.IsValidTarget(Menus.ComboMenu["RRangeSlider"].Cast <Slider>().CurrentValue) &&
                Prediction.Health.GetPrediction(rtarget, SpellsManager.R.CastDelay) <=
                SpellsManager.GetRealDamage(rtarget, SpellSlot.R))
            {
                var prediction = SpellsManager.R.GetPrediction(rtarget);
                if (Menus.ComboMenu["RPrediction"].Cast <ComboBox>().CurrentValue == 1)
                {
                    SpellsManager.R.Cast(prediction.CastPosition);
                }
                else if (Menus.ComboMenu["RPrediction"].Cast <ComboBox>().CurrentValue == 0)
                {
                    SpellsManager.R.Cast(rtarget.Position);
                }
            }
        }