示例#1
0
        private void castR(EloBuddy.AIHeroClient target)
        {
            var inx = rMenu["hitchanceR"].Cast <Slider>().CurrentValue;

            if (inx == 0)
            {
                R.Cast(R.GetPrediction(target).CastPosition);
            }
            else if (inx == 1)
            {
                R.Cast(target);
            }
            else if (inx == 2)
            {
                Program.CastSpell(R, target);
            }
            else if (inx == 3)
            {
                List <Vector2> waypoints = target.GetWaypoints();
                if ((Player.LSDistance(waypoints.Last <Vector2>().To3D()) - Player.LSDistance(target.Position)) > 400)
                {
                    Program.CastSpell(R, target);
                }
            }
        }