示例#1
0
 public static void GapCloserMode(Obj_AI_Base sender, Gapcloser.GapcloserEventArgs args)
 {
     if (!MenuManager.GapCloserMode)
     {
         return;
     }
     if (sender != null && MenuManager.GapCloserUseE)
     {
         var target = TargetManager.GetChampionTarget(SpellManager.E.Range, DamageType.Magical);
         if (target != null)
         {
             SpellManager.CastE(target);
         }
     }
 }
示例#2
0
 public static void KsMode()
 {
     if (MenuManager.KsUseQ)
     {
         var target = TargetManager.GetChampionTarget(SpellManager.Q.Range, DamageType.Magical, false, true, SpellManager.QDamage());
         if (target != null)
         {
             SpellManager.CastQ(target);
         }
     }
     if (MenuManager.KsUseR)
     {
         var target = TargetManager.GetChampionTarget(SpellManager.R.Range, DamageType.Mixed, false, false, SpellManager.RDamage());
         if (target != null)
         {
             SpellManager.CastR(target);
         }
     }
 }
示例#3
0
 public static void HarassMode()
 {
     if (Champion.ManaPercent < MenuManager.HarassMana)
     {
         return;
     }
     if (MenuManager.HarassUseQ)
     {
         var target = TargetManager.GetChampionTarget(SpellManager.Q.Range, DamageType.Magical, false, true);
         if (target != null)
         {
             SpellManager.CastQ(target);
         }
     }
     if (MenuManager.HarassUseW)
     {
         var target = TargetManager.GetChampionTarget(SpellManager.W.Range, DamageType.Mixed);
         if (target != null)
         {
             SpellManager.CastW(target);
         }
     }
     if (MenuManager.HarassUseE)
     {
         var target = TargetManager.GetChampionTarget(SpellManager.E.Range, DamageType.Magical);
         if (target != null)
         {
             SpellManager.CastE(target);
         }
     }
     if (MenuManager.HarassUseR &&
         Champion.GetBuffCount("kogmawlivingartillerycost") <= MenuManager.HarassStacks)
     {
         var target = TargetManager.GetChampionTarget(SpellManager.R.Range, DamageType.Mixed);
         if (target != null)
         {
             SpellManager.CastR(target);
         }
     }
 }
示例#4
0
        public static void DeathFollowMode()
        {
            if (Ptarget != null)
            {
                Player.IssueOrder(GameObjectOrder.MoveTo, Ptarget.ServerPosition - 100);
            }
            else
            {
                var kstarget = TargetManager.GetChampionTarget(SpellManager.Q.Range, DamageType.True, false, false, SpellManager.PDamage());

                if (kstarget != null)
                {
                    Ptarget = kstarget;
                }
                else
                {
                    var target = TargetManager.GetChampionTarget(SpellManager.Q.Range, DamageType.True);
                    if (target != null)
                    {
                        Ptarget = target;
                    }
                    else
                    {
                        var ksminion = TargetManager.GetMinionTarget(SpellManager.Q.Range, DamageType.True, false, false, false, SpellManager.PDamage());
                        if (ksminion != null)
                        {
                            Ptarget = ksminion;
                        }
                        else
                        {
                            var minion = TargetManager.GetMinionTarget(SpellManager.Q.Range, DamageType.True);
                            if (minion != null)
                            {
                                Ptarget = minion;
                            }
                        }
                    }
                }
            }
        }