예제 #1
0
        void MoveToMouse()
        {
            Yasuo.IssueOrder(GameObjectOrder.MoveTo, Game.CursorPos);
            if (Spells[E].IsReady())
            {
                var bestminion =
                    ObjectManager.Get <Obj_AI_Base>()
                    .Where(x => x.IsDashable())
                    .MinOrDefault(x => GetDashPos(x).Distance(Game.CursorPos));

                if (bestminion != null)
                {
                    Spells[E].CastOnUnit(bestminion);
                }
            }
        }