Esempio n. 1
0
 private static void OnLaneClear()
 {
     if (Q.IsReady() && GravesTheTrollMeNu.LaneQ() && Player.Mana > GravesTheTrollMeNu.LaneMana())
     {
         foreach (
             var enemyMinion in
             ObjectManager.Get <Obj_AI_Minion>().Where(x => x.IsEnemy && x.Distance(Player) <= Q.Range))
         {
             var enemyMinionsInRange =
                 ObjectManager.Get <Obj_AI_Minion>()
                 .Where(x => x.IsEnemy && x.Distance(enemyMinion) <= 600)
                 .Count();
             if (enemyMinionsInRange > GravesTheTrollMeNu.LaneQcount())
             {
                 Q.Cast(enemyMinion.Position);
             }
         }
     }
 }