Пример #1
0
        private static void GameObject_OnCreate(GameObject sender, EventArgs args)
        {
            var rengar = EntityManager.Heroes.Enemies.Find(r => r.ChampionName.Equals("Rengar"));
            var khazix = EntityManager.Heroes.Enemies.Find(z => z.ChampionName.Equals("Khazix"));

            if (khazix != null)
            {
                if (sender.Name == ("Khazix_Base_E_Tar.troy") && TristanaMenu.GapcloserR2() &&
                    sender.Position.Distance(Player) <= 400)
                {
                    R.Cast(khazix);
                }
            }
            if (rengar == null)
            {
                return;
            }
            if (sender.Name == ("Rengar_LeapSound.troy") && TristanaMenu.GapcloserR3() &&
                sender.Position.Distance(Player) < R.Range)
            {
                R.Cast(rengar);
            }
        }