コード例 #1
0
ファイル: Ezreal.cs プロジェクト: Merc491/LeagueSharp-2
 private void ObjAiBaseOnOnTarget(Obj_AI_Base sender, Obj_AI_BaseTargetEventArgs args)
 {
     if (sender is Obj_AI_Turret && sender.Distance(ObjectManager.Player) < 850 && args.Target is Obj_AI_Minion && args.Target.IsEnemy)
     {
         _lastTurretTarget = args.Target as Obj_AI_Minion;
     }
 }
コード例 #2
0
ファイル: TowerRange.cs プロジェクト: yunsun9611/LeagueSharp
 private void Turret_OnTarget(Obj_AI_Base sender, Obj_AI_BaseTargetEventArgs args)
 {
     if (turretCache.ContainsKey(sender.NetworkId))
     {
         turretTarget[sender.NetworkId] = args.Target;
     }
 }
コード例 #3
0
ファイル: TowerRange.cs プロジェクト: aikoy/ezEvade
 private void Turret_OnTarget(Obj_AI_Base sender, Obj_AI_BaseTargetEventArgs args)
 {
     if (turretCache.ContainsKey(sender.NetworkId))
     {
         turretTarget[sender.NetworkId] = args.Target;
     }
 }
コード例 #4
0
ファイル: Program.cs プロジェクト: werdbrian/MotionSharp
 private static void Turret_OnTarget(Obj_AI_Base sender, Obj_AI_BaseTargetEventArgs args)
 {
     if (sender.GetType() == typeof(Obj_AI_Turret))
     {
         TurretHasAggro[sender.NetworkId] = !(args.Target == null || args.Target is Obj_AI_Minion);
         //Game.PrintChat("Turret with Index[" + sender.Index + "] has Aggro: " + (TurretHasAggro[sender.Index]? "yes" : "no"));
     }
 }
コード例 #5
0
        private void Obj_AI_Base_OnTarget(Obj_AI_Base sender, Obj_AI_BaseTargetEventArgs args)
        {
            if (sender == null || args.Target == null || !sender.IsAlly || !args.Target.IsEnemy ||
                !sender.SkinName.ToLowerInvariant().Contains("turret") ||
                !args.Target.Name.ToLowerInvariant().Contains("minion"))
            {
                return;
            }

            if (ObjectManager.Player.Distance(args.Target) <= q.Range)
            {
                turrent           = sender;
                targetUnderTurret = new Obj_AI_Minion((ushort)args.Target.Index, (uint)args.Target.NetworkId);;
            }
            else
            {
                turrent           = null;
                targetUnderTurret = null;
            }
        }
コード例 #6
0
        private void Obj_AI_Base_OnTarget(Obj_AI_Base sender, Obj_AI_BaseTargetEventArgs args)
        {
            if (sender == null || args.Target == null || !sender.IsAlly || !args.Target.IsEnemy
                || !sender.SkinName.ToLowerInvariant().Contains("turret")
                || !args.Target.Name.ToLowerInvariant().Contains("minion"))
            {
                return;
            }

            if (ObjectManager.Player.Distance(args.Target) <= q.Range)
            {
                turrent = sender;
                targetUnderTurret = new Obj_AI_Minion((ushort)args.Target.Index, (uint)args.Target.NetworkId); ;
            }
            else
            {
                turrent = null;
                targetUnderTurret = null;
            }
        }
コード例 #7
0
        private void Obj_AI_Turret_OnTarget(Obj_AI_Base sender, Obj_AI_BaseTargetEventArgs args)
        {
            if (sender == null || args.Target == null || !sender.IsAlly || !args.Target.IsEnemy ||
                !sender.SkinName.ToLowerInvariant().Contains("turret") ||
                !args.Target.Name.ToLowerInvariant().Contains("minion"))
            {
                return;
            }

            if (player.Distance(args.Target) <= player.AttackRange + player.BoundingRadius + args.Target.BoundingRadius)
            {
                var target          = (Obj_AI_Minion)args.Target;
                var predictedHealth = HealthPrediction.GetHealthPrediction(target, (int)GetAATime(target), 500);

                if (predictedHealth > sender.GetAutoAttackDamage(target) + AutoAttackDamage(target) &&
                    predictedHealth < sender.GetAutoAttackDamage(target) * 2)
                {
                    EnqueueAA(target);
                }
            }
        }
コード例 #8
0
ファイル: Orbwalker.cs プロジェクト: kunbobby/LeagueSharp
        private void Obj_AI_Turret_OnTarget(Obj_AI_Base sender, Obj_AI_BaseTargetEventArgs args)
        {
            if (sender == null || args.Target == null || !sender.IsAlly || !args.Target.IsEnemy
                || !sender.SkinName.ToLowerInvariant().Contains("turret")
                || !args.Target.Name.ToLowerInvariant().Contains("minion"))
            {
                return;
            }

            if (player.Distance(args.Target) <= player.AttackRange + player.BoundingRadius + args.Target.BoundingRadius)
            {
                var target = (Obj_AI_Minion)args.Target;
                var predictedHealth = HealthPrediction.GetHealthPrediction(target, (int)GetAATime(target), 500);

                if (predictedHealth > sender.GetAutoAttackDamage(target) + AutoAttackDamage(target)
                    && predictedHealth < sender.GetAutoAttackDamage(target) * 2)
                {
                    EnqueueAA(target);
                }
            }
        }
コード例 #9
0
ファイル: Ezreal.cs プロジェクト: cttbot/LeagueSharp
 private void ObjAiBaseOnOnTarget(Obj_AI_Base sender, Obj_AI_BaseTargetEventArgs args)
 {
     if (sender is Obj_AI_Turret && sender.Distance(ObjectManager.Player) < 850 && args.Target is Obj_AI_Minion && args.Target.IsEnemy)
     {
         _lastTurretTarget = args.Target as Obj_AI_Minion;
     }
 }