Beispiel #1
0
        private void GameOnUpdate(EventArgs args)
        {
            if (Target == null ||
                heroInfo.HasSpellShield(Target) ||
                gnarState.Mini ||
                !CheckGuardians())
            {
                return;
            }

            var wall = gnarWallDetection.Wall(Target.Position, Menu.Item("Range").GetValue <Slider>().Value);

            ObjectManager.Player.GetPath(wall);

            if (wall != Vector3.Zero)
            {
                Spells.R2.Cast(wall);
            }
        }
Beispiel #2
0
        private void OnUpdate(EventArgs args)
        {
            if (Target == null ||
                Menu.Item("Vayne.Combo.E.Mana").GetValue <Slider>().Value > ObjectManager.Player.ManaPercent ||
                info.HasSpellShield(Target) ||
                !CheckGuardians())
            {
                return;
            }

            if (Menu.Item("Vayne.Combo.E.Stack").GetValue <bool>() && spell.WStack(Target))
            {
                spell.Spell.CastOnUnit(Target);
            }

            switch (Menu.Item("Vayne.Combo.E.Mode").GetValue <StringList>().SelectedIndex)
            {
            case 0:
                if (condemnTypes.Reformed(Target, Menu.Item("Vayne.Combo.E.Push").GetValue <Slider>().Value, spell.Spell))
                {
                    spell.Spell.CastOnUnit(Target);
                }
                break;

            case 1:
                if (condemnTypes.Marksman(Target, spell.Spell))
                {
                    spell.Spell.CastOnUnit(Target);
                }
                break;

            case 2:
                if (condemnTypes.SharpShooter(
                        Target,
                        spell.Spell,
                        Menu.Item("Vayne.Combo.E.Push").GetValue <Slider>().Value))
                {
                    spell.Spell.CastOnUnit(Target);
                }
                break;
            }
        }