Exemplo n.º 1
0
        public float GetComboDamage(Obj_AI_Base target)
        {
            if (target == null)
            {
                return(0);
            }

            float comboDmg = 0;

            if (qSpell.Spell.IsReady())
            {
                comboDmg += qSpell.GetDamage(target);
            }

            //if (eSpell.Spell.IsReady())
            //{
            //    comboDmg += eSpell.Spell.GetDamage(target);
            //}

            if (eSpell.WStack(target))
            {
                comboDmg += wSpell.GetDamage(target);
            }

            comboDmg += (float)ObjectManager.Player.GetAutoAttackDamage(target, true);

            return(comboDmg);
        }
Exemplo n.º 2
0
        private void OnUpdate(EventArgs args)
        {
            if (Target == null ||
                Target.Health + 45 > spell.GetDamage(Target) * .85 ||
                Menu.Item("Vayne.Killsteal.E.Mana").GetValue <Slider>().Value > ObjectManager.Player.ManaPercent ||
                (Menu.Item("Vayne.Killsteal.E.Proc").GetValue <bool>() && !spell.WStack(Target)) ||
                !CheckGuardians())
            {
                return;
            }


            spell.Spell.Cast(Target);
        }
Exemplo n.º 3
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;
            }
        }