コード例 #1
0
        private void FleeJungle()
        {
            foreach (var pos in JunglePos)
            {
                qSpell.Spell.Cast(pos);
            }

            var mobs = MinionManager.GetMinions(1000f, MinionTypes.All, MinionTeam.NotAlly).LastOrDefault();

            if (mobs?.Distance(Game.CursorPos) < 700 &&
                mobs.Distance(ObjectManager.Player) > 400 &&
                mobs.Health > qSpell.GetDamage(mobs))
            {
                qSpell.Spell.Cast(mobs.Position);
            }

            if (!wSpell.Spell.IsReady() ||
                !wSpell.W1 ||
                mobs != null ||
                JunglePos.Any())
            {
                return;
            }

            var position = ObjectManager.Player.Position + (Game.CursorPos - ObjectManager.Player.Position).Normalized() * 600;

            wSpell.Jump(position,
                        Menu.Item("LeeSin.Flee.W.Minions").GetValue <bool>(),
                        Menu.Item("LeeSin.Flee.W.Allies").GetValue <bool>(),
                        false);
        }
コード例 #2
0
        private void OnEndScene(EventArgs args)
        {
            if (ObjectManager.Player.IsDead || !Menu.Item("LeeSin.Flee.Draw").GetValue <bool>())
            {
                return;
            }

            foreach (var pos in JunglePos.Where(x => x.Distance(ObjectManager.Player.Position) < 1500))
            {
                Render.Circle.DrawCircle(pos, 50, Color.Cyan);
            }

            Render.Circle.DrawCircle(Game.CursorPos, 600, Color.White);
        }