Exemplo 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 (E.IsReady() && FappadredMenu.JungleE() && source.Distance(Player) <= E.Range)
            {
                E.Cast(source);
            }
            if (W.IsReady() && FappadredMenu.JungleW() && source.Distance(Player) <= W.Range)
            {
                W.Cast();
            }
            if (Q.IsReady() && FappadredMenu.JungleQ() && source.Distance(Player) <= Q.Range)
            {
                Q.Cast(Game.CursorPos);
            }
        }