Exemple #1
0
 public static void Heal()
 {
     if (MyActivator.heal.IsReady() && Player.HealthPercent <= ThreshMenu.spellsHealhp())
     {
         MyActivator.heal.Cast();
     }
 }
Exemple #2
0
        private static void OnLoadingComplete(EventArgs args)
        {
            if (Player.ChampionName != "Thresh")
            {
                return;
            }
            AbilitySequence = new int[] { 3, 1, 2, 3, 1, 4, 1, 1, 1, 3, 4, 3, 3, 2, 2, 4, 2, 2 };
            Chat.Print("Thug Thresh Loaded!", Color.CornflowerBlue);
            Chat.Print("Enjoy the game and DONT FLAME!", Color.CornflowerBlue);
            ThreshMenu.loadMenu();
            Game.OnTick += GameOnTick;
            MyActivator.loadSpells();
            Game.OnUpdate += OnGameUpdate;

            #region Skill
            Q  = new Spell.Skillshot(SpellSlot.Q, 1075, SkillShotType.Linear, (int)0.35f, 1200, 60);
            Q2 = new Spell.Active(SpellSlot.Q, 1075);
            W  = new Spell.Skillshot(SpellSlot.W, 950, SkillShotType.Circular, (int)0.25f, 1750, 300);
            E  = new Spell.Skillshot(SpellSlot.E, 500, SkillShotType.Linear, 1, 2000, 110);
            R  = new Spell.Active(SpellSlot.R, 350);
            #endregion

            Obj_AI_Base.OnNewPath            += Obj_AI_Base_OnNewPath;
            Interrupter.OnInterruptableSpell += Interrupter_OnInterruptableSpell;
            Gapcloser.OnGapcloser            += AntiGapCloser;
            AIHeroClient.OnProcessSpellCast  += AIHeroClient_OnProcessSpellCast;
            Drawing.OnDraw += GameOnDraw;
        }
Exemple #3
0
 private static void OnGameUpdate(EventArgs args)
 {
     if (MyActivator.heal != null)
     {
         Heal();
     }
     if (MyActivator.ignite != null)
     {
         ignite();
     }
     if (MyActivator.exhaust != null)
     {
         exhaust();
     }
     Player.SetSkinId(ThreshMenu.skinId());
 }
Exemple #4
0
        public static void GameOnDraw(EventArgs args)
        {
            if (ThreshMenu.nodraw())
            {
                return;
            }

            if (!ThreshMenu.onlyReady())
            {
                if (ThreshMenu.drawingsQ())
                {
                    new Circle()
                    {
                        Color = Color.AliceBlue, Radius = Q.Range, BorderWidth = 2f
                    }.Draw(Player.Position);
                }
                if (ThreshMenu.drawingsW())
                {
                    new Circle()
                    {
                        Color = Color.OrangeRed, Radius = W.Range, BorderWidth = 2f
                    }.Draw(Player.Position);
                }
                if (ThreshMenu.drawingsE())
                {
                    new Circle()
                    {
                        Color = Color.Cyan, Radius = E.Range, BorderWidth = 2f
                    }.Draw(Player.Position);
                }
                if (ThreshMenu.drawingsR())
                {
                    new Circle()
                    {
                        Color = Color.SkyBlue, Radius = R.Range, BorderWidth = 2f
                    }.Draw(Player.Position);
                }
                if (ThreshMenu.Allydrawn())
                {
                    DrawHealths();
                }
            }
            else
            {
                if (!Q.IsOnCooldown && ThreshMenu.drawingsQ())
                {
                    new Circle()
                    {
                        Color = Color.AliceBlue, Radius = 340, BorderWidth = 2f
                    }.Draw(Player.Position);
                }
                if (!W.IsOnCooldown && ThreshMenu.drawingsW())
                {
                    new Circle()
                    {
                        Color = Color.OrangeRed, Radius = 800, BorderWidth = 2f
                    }.Draw(Player.Position);
                }
                if (!E.IsOnCooldown && ThreshMenu.drawingsE())
                {
                    new Circle()
                    {
                        Color = Color.Cyan, Radius = 500, BorderWidth = 2f
                    }.Draw(Player.Position);
                }
                if (!R.IsOnCooldown && ThreshMenu.drawingsR())
                {
                    new Circle()
                    {
                        Color = Color.SkyBlue, Radius = 500, BorderWidth = 2f
                    }.Draw(Player.Position);
                }
                if (ThreshMenu.Allydrawn())
                {
                    DrawHealths();
                }
            }
        }
Exemple #5
0
        public static void ignite()
        {
            var autoIgnite = TargetSelector.GetTarget(MyActivator.ignite.Range, DamageType.True);

            if (autoIgnite != null && autoIgnite.Health <= DamageLibrary.GetSpellDamage(Player, autoIgnite, MyActivator.ignite.Slot) || autoIgnite != null && autoIgnite.HealthPercent <= ThreshMenu.spellsHealignite())
            {
                MyActivator.ignite.Cast(autoIgnite);
            }
        }
Exemple #6
0
 public static void ChangeDSkin(Object sender, EventArgs args)
 {
     Player.SetSkinId(ThreshMenu.skinId());
 }