Esempio n. 1
0
        private static void OnDraw(EventArgs args)
        {
            if (MenuCreator.IsChecked(MenuCreator.DrawMenu, "draw.disable"))
            {
                DamageIndicator.Enabled = false;
                return;
            }

            if (MenuCreator.IsChecked(MenuCreator.DrawMenu, "draw.w"))
            {
                new Circle()
                {
                    Color = Color.Red, BorderWidth = 1, Radius = Spells.W.Range
                }.Draw(Player.Instance.Position);
            }
            if (MenuCreator.IsChecked(MenuCreator.DrawMenu, "draw.e"))
            {
                new Circle()
                {
                    Color = Color.Red, BorderWidth = 1, Radius = Spells.E.Range
                }.Draw(Player.Instance.Position);
            }

            DamageIndicator.Enabled = MenuCreator.IsChecked(MenuCreator.DrawMenu, "draw.damage");
        }
Esempio n. 2
0
        private static void BeforeAutoAttack(AttackableUnit target, Orbwalker.PreAttackArgs args)
        {
            if (!Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Combo) || !MenuCreator.IsChecked(MenuCreator.MiscMenu, "misc.yomumu"))
            {
                return;
            }

            if (!target.IsValidTarget(Player.Instance.GetAutoAttackRange()))
            {
                return;
            }

            if (_yomumu.IsOwned() && _yomumu.IsReady())
            {
                _yomumu.Cast();
            }
        }
Esempio n. 3
0
        private static void AfterAutoAttack(AttackableUnit target, EventArgs args)
        {
            if (!Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.JungleClear) &&
                !Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.LaneClear) &&
                !Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Combo) || !MenuCreator.IsChecked(MenuCreator.MiscMenu, "misc.hydra"))
            {
                return;
            }

            if (_tiamat.IsOwned() && _tiamat.IsReady())
            {
                _tiamat.Cast();
            }
            else if (_hydra.IsOwned() && _hydra.IsReady())
            {
                _hydra.Cast();
            }
        }