示例#1
0
文件: WLane.cs 项目: Dekryptor/Port-1
        private void OnUpdate(EventArgs args)
        {
            if (!CheckGuardians() ||
                Minion == null ||
                Menu.Item("Xerath.Lane.W.Mana").GetValue <Slider>().Value > ObjectManager.Player.ManaPercent ||
                (Menu.Item("Xerath.Lane.W.Enemies").GetValue <bool>() && ObjectManager.Player.CountEnemiesInRange(1400) >= 1))
            {
                return;
            }

            var pred = spell.Spell.GetCircularFarmLocation((List <Obj_AI_Base>)Minion);

            if (pred.MinionsHit < Menu.Item("Xerath.Lane.W.Count").GetValue <Slider>().Value)
            {
                return;
            }

            foreach (var m in Minion)
            {
                if (m.Health > spell.GetDamage(m) && Menu.Item("Xerath.Lane.W.Killable").GetValue <bool>())
                {
                    continue;
                }

                spell.Spell.Cast(pred.Position);
            }
        }
示例#2
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);
        }
示例#3
0
        public float GetComboDamage(AIHeroClient target)
        {
            if (target == null)
            {
                return(0);
            }

            float comboDmg = 0;

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

            if (wSpell.Spell.IsReady() || ObjectManager.Player.HasBuff("DrunkenRage"))
            {
                comboDmg += wSpell.GetDamage(target) + (float)ObjectManager.Player.GetAutoAttackDamage(target, true);
            }

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

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

            return(comboDmg);
        }
示例#4
0
        public float GetComboDamage(AIHeroClient target)
        {
            if (target == null)
            {
                return(0);
            }

            float comboDmg = 0;

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

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

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

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

            return(comboDmg);
        }
示例#5
0
        private void OnUpdate(EventArgs args)
        {
            if (Target == null || Target.Health > spell.GetDamage(Target) || !CheckGuardians())
            {
                return;
            }

            spell.Spell.Cast(Target);
        }
示例#6
0
        public float GetComboDamage(AIHeroClient target)
        {
            if (target == null)
            {
                return(0);
            }

            return(qSpell.GetDamage(target)
                   + wSpell.GetDamage(target)
                   + eSpell.GetDamage(target)
                   + rSpell.GetDamage(target));
        }
示例#7
0
        private void OnUpdate(EventArgs args)
        {
            if (!CheckGuardians() ||
                Target == null ||
                Target.Health > spell.GetDamage(Target) ||
                spell.Prediction(Target).Hitchance < HitChance.High ||
                Menu.Item("Example.Killsteal.W.Mana").GetValue <Slider>().Value > ObjectManager.Player.ManaPercent)
            {
                return;
            }

            spell.Spell.Cast(spell.Prediction(Target).CastPosition);
        }
示例#8
0
        private void OnUpdate(EventArgs args)
        {
            if (Target == null || Target.Health > wSpell.GetDamage(Target) || !CheckGuardians())
            {
                return;
            }

            var qPred = wSpell.Spell.GetPrediction(Target, true);

            if (qPred.Hitchance > HitChance.Medium)
            {
                wSpell.Spell.Cast(Target);
            }
        }
示例#9
0
        private void OnUpdate(EventArgs args)
        {
            if (!CheckGuardians() ||
                Mob == null ||
                Menu.Item("Ziggs.Jungle.W.Mana").GetValue <Slider>().Value > ObjectManager.Player.ManaPercent)
            {
                return;
            }

            if (Mob.Health > spell.GetDamage(Mob) && Menu.Item("Ziggs.Jungle.W.Killable").GetValue <bool>())
            {
                return;
            }

            spell.Spell.Cast(Mob);
        }
示例#10
0
文件: W.cs 项目: waldow90/PortAIO
        private void OnUpdate(EventArgs args)
        {
            if (Target == null || Target.Health > wSpell.GetDamage(Target) || !CheckGuardians())
            {
                return;
            }

            if (Target.Distance(ObjectManager.Player) <= wSpell.Spell.Range)
            {
                var wPred = wSpell.Spell.GetPrediction(Target, true);

                if (wPred.Hitchance > HitChance.Medium)
                {
                    wSpell.Spell.Cast(Target);
                }
            }
        }
示例#11
0
        public float GetComboDamage(AIHeroClient target)
        {
            if (target == null)
            {
                return(0);
            }

            float comboDmg = 0;

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

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

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

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

            if (!ObjectManager.Player.Spellbook.IsAutoAttacking)
            {
                comboDmg += (float)ObjectManager.Player.GetAutoAttackDamage(target);
            }

            return(comboDmg);
        }