コード例 #1
0
ファイル: Config.cs プロジェクト: Shades1325/RebornAIO
        // YasuoWall
        private static void Game_OnUpdate(EventArgs args)
        {
            if (!Menu.Item("EnabledToggle").GetValue <KeyBind>().Active&& !Menu.Item("EnablePress").GetValue <KeyBind>().Active)
            {
                return;
            }
            var skillshot = Skillshot.SkillshotAboutToHit(ObjectManager.Player, 250 + Game.Ping).Where
                                (x => Menu.Item(x.SpellData.MenuItemName).GetValue <bool>()).FirstOrDefault();

            if (skillshot != null && ObjectManager.Player.Spellbook.GetSpell(SpellSlot.W).IsReady())
            {
                var pos = ObjectManager.Player.Position.To2D().Extend(skillshot.Start, 250);
                ObjectManager.Player.Spellbook.CastSpell(SpellSlot.W, pos.To3D());
            }
        }