Ejemplo n.º 1
0
        /// <summary>
        /// Farming function
        /// </summary>
        static void LaneClear()
        {
            //Minions
            List <Obj_AI_Base> minions = MinionManager.GetMinions(player.Position, Q3.Range);

            //Farm locations for spells
            MinionManager.FarmLocation QPos = Q3.GetCircularFarmLocation(minions);
            //MinionManager.FarmLocation WPos = W.GetCircularFarmLocation(minions);
            MinionManager.FarmLocation EPos = E.GetCircularFarmLocation(minions);
            //Minons count
            int numToHit = menu.SubMenu("waveClear").Item("waveNum").GetValue <Slider>().Value;
            //Using of spells
            bool useQ = menu.SubMenu("waveClear").Item("UseQ").GetValue <bool>() && Q1.IsReady();
            //bool useW = menu.SubMenu("waveClear").Item("UseW").GetValue<bool>();
            bool useE = menu.SubMenu("waveClear").Item("UseE").GetValue <bool>() && E.IsReady();

            //Casts
            if (useQ && QPos.MinionsHit >= numToHit)
            {
                Q1.Cast(QPos.Position, true);
                SMouse.addMouseEvent(QPos.Position.To3D(), false, CRB);
            }
            //if (false && WPos.MinionsHit >= numToHit) W.Cast(WPos.Position, true);
            if (useE && EPos.MinionsHit >= numToHit)
            {
                E.Cast(EPos.Position, true);
                SMouse.addMouseEvent(EPos.Position.To3D(), false, CRB);
            }
        }