Ejemplo n.º 1
0
        private static void OnJungle()
        {
            var source =
                EntityManager.MinionsAndMonsters.GetJungleMonsters(Player.ServerPosition, Q.Range)
                .OrderByDescending(a => a.MaxHealth)
                .FirstOrDefault();

            if (source == null)
            {
                return;
            }
            if (Q.IsReady() && MissInopportuneMenu.JungleQ() && source.Distance(Player) <= Q.Range)
            {
                Q.Cast(source);
            }
            if (W.IsReady() && MissInopportuneMenu.JungleW() && source.Distance(Player) <= W.Range)
            {
                W.Cast();
            }
            if (E.IsReady() && MissInopportuneMenu.JungleE() && source.Distance(Player) <= E.Range)
            {
                E.Cast(source.Position);
            }
        }