Пример #1
0
        private static void GameOnOnUpdate(EventArgs args)
        {
            if (!ChewyMoonShaco.getCheckBoxItem(ChewyMoonShaco.illuminatiMenu, "RepairTriangle"))
            {
                return;
            }

            foreach (var shacoBox in Boxes)
            {
                var angle = 120;

                var point = RotateAroundPoint(
                    angle, shacoBox.Position.LSTo2D(), shacoBox.Position.LSExtend(_extendPoint, TriangleLegDistance));

                if (!Boxes.Any(x => x.LSDistance(point) < BoxSafeDistance) && ChewyMoonShaco.W.IsInRange(point))
                {
                    ChewyMoonShaco.W.Cast(point);
                }
                else
                {
                    angle = -120;

                    point = RotateAroundPoint(
                        angle, shacoBox.Position.LSTo2D(), shacoBox.Position.LSExtend(_extendPoint, TriangleLegDistance));

                    if (!Boxes.Any(x => x.LSDistance(point) < BoxSafeDistance) && ChewyMoonShaco.W.IsInRange(point))
                    {
                        ChewyMoonShaco.W.Cast(point);
                    }
                    else
                    {
                        angle = 240;

                        point = RotateAroundPoint(
                            angle, shacoBox.Position.LSTo2D(), shacoBox.Position.LSExtend(_extendPoint, TriangleLegDistance));

                        if (!Boxes.Any(x => x.LSDistance(point) < BoxSafeDistance) && ChewyMoonShaco.W.IsInRange(point))
                        {
                            ChewyMoonShaco.W.Cast(point);
                        }
                    }
                }
            }
        }
Пример #2
0
 public static void Main()
 {
     ChewyMoonShaco.OnGameLoad();
 }