Beispiel #1
0
 private static void LogicE()
 {
     if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Combo) || Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.LaneClear) || Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.JungleClear))
     {
         if (Player.HasBuff("KarthusDefile"))
         {
             if (Program.LaneClear)
             {
                 if (OktwCommon.CountEnemyMinions(Player, E.Range) < getSliderItem(farmMenu, "ELCminions") ||
                     Player.ManaPercent < getSliderItem(farmMenu, "Mana"))
                 {
                     E.Cast();
                 }
             }
             else if (getCheckBoxItem(eMenu, "autoE"))
             {
                 if (Player.ManaPercent < getSliderItem(eMenu, "Emana") || Player.CountEnemiesInRange(E.Range) == 0)
                 {
                     E.Cast();
                 }
             }
         }
         else
         {
             if (Program.LaneClear && OktwCommon.CountEnemyMinions(Player, E.Range) >= getSliderItem(farmMenu, "ELCminions") && Player.ManaPercent > getSliderItem(farmMenu, "Mana"))
             {
                 E.Cast();
             }
             if (getCheckBoxItem(eMenu, "autoE") && Player.ManaPercent > getSliderItem(eMenu, "Emana") && Player.CountEnemiesInRange(E.Range) > 0)
             {
                 E.Cast();
             }
         }
     }
 }
Beispiel #2
0
        private void LogicE()
        {
            if (Program.None)
            {
                return;
            }

            if (Player.HasBuff("KarthusDefile"))
            {
                if (Program.LaneClear)
                {
                    if (OktwCommon.CountEnemyMinions(Player, E.Range) < Config.Item("ELCminions", true).GetValue <Slider>().Value || Player.ManaPercent < Config.Item("Mana", true).GetValue <Slider>().Value)
                    {
                        E.Cast();
                    }
                }
                else if (Config.Item("autoE", true).GetValue <bool>())
                {
                    if (Player.ManaPercent < Config.Item("Emana", true).GetValue <Slider>().Value || Player.CountEnemiesInRange(E.Range) == 0)
                    {
                        E.Cast();
                    }
                }
            }
            else
            {
                if (Program.LaneClear)
                {
                    if (OktwCommon.CountEnemyMinions(Player, E.Range) >= Config.Item("ELCminions", true).GetValue <Slider>().Value&& FarmSpells)
                    {
                        E.Cast();
                    }
                }
                else if (Config.Item("autoE", true).GetValue <bool>() && Player.ManaPercent > Config.Item("Emana", true).GetValue <Slider>().Value&& Player.CountEnemiesInRange(E.Range) > 0)
                {
                    E.Cast();
                }
            }
        }
Beispiel #3
0
 private void afterAttack(AttackableUnit unit, AttackableUnit target)
 {
     if (target is Obj_AI_Hero)
     {
         var t = (Obj_AI_Hero)target;
         if (t.IsValidTarget())
         {
             if (Program.Combo)
             {
                 Q.Cast();
             }
             else if (Program.Farm && Config.Item("harasQ", true).GetValue <bool>())
             {
                 Q.Cast();
             }
         }
     }
     else if (target is Obj_AI_Minion && Program.LaneClear && Config.Item("farmQ", true).GetValue <bool>() && OktwCommon.CountEnemyMinions(Player, 700) > 2)
     {
         Q.Cast();
     }
 }
Beispiel #4
0
 private void afterAttack(AttackableUnit unit, AttackableUnit target)
 {
     if (target is Obj_AI_Hero)
     {
         var t = (Obj_AI_Hero)target;
         if (t.IsValidTarget())
         {
             if (Program.Combo)
             {
                 Q.Cast();
             }
             else if (Program.Harass && MainMenu.Item("harassQ", true).GetValue <bool>() && MainMenu.Item("Harass" + t.ChampionName).GetValue <bool>())
             {
                 Q.Cast();
             }
         }
     }
     else if (target is Obj_AI_Minion && FarmSpells && MainMenu.Item("farmQ", true).GetValue <bool>() && OktwCommon.CountEnemyMinions(Player, 700) > 2)
     {
         Q.Cast();
     }
 }