Esempio n. 1
0
        protected void SwapByCountingEnemies()
        {
            var wCount = (WShadowIsValid && W.IsReady) ? WShadow.CountEnemiesInRange(400) : 100;
            var rCount = (RShadowIsValid && R.IsReady) ? RShadow.CountEnemiesInRange(400) : 100;
            var min    = Math.Min(rCount, wCount);

            if (MyHero.CountEnemiesInRange(400) > min)
            {
                if (min == wCount)
                {
                    W.Cast();
                }
                else if (min == rCount)
                {
                    R.Cast();
                }
            }
        }