示例#1
0
 private static void AntiGapcloser_OnEnemyGapcloser(ActiveGapcloser gapcloser)
 {
     if (Hammer)
     {
         if (Config.Item("agapcloser").GetValue <bool>())
         {
             if (gapcloser.Sender.IsValidTarget(1000))
             {
                 Render.Circle.DrawCircle(gapcloser.Sender.Position, gapcloser.Sender.BoundingRadius, Color.Gold, 5);
                 var targetpos = Drawing.WorldToScreen(gapcloser.Sender.Position);
                 Drawing.DrawText(targetpos[0] - 40, targetpos[1] + 20, Color.Gold, "Gapcloser");
             }
             if (HammerE.CanCast(gapcloser.Sender))
             {
                 HammerE.Cast(gapcloser.Sender);
             }
         }
     }
 }
示例#2
0
 private static void Interrupter2_OnInterruptableTarget(AIHeroClient sender, Interrupter2.InterruptableTargetEventArgs args)
 {
     if (Hammer)
     {
         if (Config.Item("ainterrupt").GetValue <bool>())
         {
             if (sender.IsValidTarget(1000))
             {
                 Render.Circle.DrawCircle(sender.Position, sender.BoundingRadius, Color.Gold, 5);
                 var targetpos = Drawing.WorldToScreen(sender.Position);
                 Drawing.DrawText(targetpos[0] - 40, targetpos[1] + 20, Color.Gold, "Interrupt");
             }
             if (HammerE.CanCast(sender))
             {
                 HammerE.Cast(sender);
             }
         }
     }
 }
示例#3
0
        private static void Combo()
        {
            if (Cannon || !Jayce.IsMelee)
            {
                if (Helper.MenuCheck("q.cannon") && Helper.MenuCheck("e.cannon") && CannonQ.IsReady() && CannonE.IsReady())
                {
                    Helper.Ext();
                }

                if (Helper.MenuCheck("q.cannon") && CannonQ.IsReady() && !CannonE.IsReady())
                {
                    foreach (var enemy in HeroManager.Enemies.Where(x => x.IsValidTarget(CannonQ.Range)))
                    {
                        if (CannonQ.GetPrediction(enemy).Hitchance >= HitChance.VeryHigh)
                        {
                            CannonQ.Cast(enemy);
                        }
                    }
                }

                if (Helper.MenuCheck("w.cannon") && CannonW.IsReady())
                {
                    foreach (var enemy in HeroManager.Enemies.Where(x => x.IsValidTarget(600)))
                    {
                        CannonW.Cast();
                    }
                }

                if (Helper.MenuCheck("combo.switch") && !CannonQ.IsReady() && !CannonE.IsReady() && !CannonW.IsReady())
                {
                    R.Cast();
                }
            }
            if (Hammer || Jayce.IsMelee)
            {
                if (Helper.MenuCheck("q.hammer") && HammerQ.IsReady())
                {
                    foreach (var enemy in HeroManager.Enemies.Where(x => x.IsValidTarget(HammerQ.Range)))
                    {
                        HammerQ.Cast(enemy);
                    }
                }
                if (Helper.MenuCheck("w.hammer") && HammerW.IsReady())
                {
                    foreach (var enemy in HeroManager.Enemies.Where(x => x.IsValidTarget(600)))
                    {
                        HammerW.Cast();
                    }
                }
                if (Helper.MenuCheck("e.hammer") && HammerE.IsReady())
                {
                    foreach (var enemy in HeroManager.Enemies.Where(x => x.IsValidTarget(HammerE.Range)))
                    {
                        HammerE.Cast(enemy);
                    }
                }
                if (Helper.MenuCheck("combo.switch") && !HammerQ.IsReady() && !HammerW.IsReady() && !HammerE.IsReady())
                {
                    R.Cast();
                }
            }
        }