示例#1
0
        public override void OnBeforeEnemyAttack(BeforeEnemyAttackEventArgs args)
        {
            if (Q.CastCheck(args.Caster, "Misc.Q.OnAttack") && (ComboMode || HarassMode) && !BlockQ &&
                args.Caster == Target && args.Type == Packet.AttackTypePacket.TargetedAA)
            {
                var collision = Collision.GetCollision(new List <Vector3> {
                    args.Caster.Position
                },
                                                       new PredictionInput {
                    Delay = 0.25f, Radius = 70, Speed = 1800
                });

                if (collision.Count == 0)
                {
                    Q.Cast(args.Caster.Position, UsePackets);
                }
            }
        }
示例#2
0
 /// <summary>
 ///     OnBeforeEnemyAttack
 /// </summary>
 /// <remarks>
 ///     override to Implement OnBeforeEnemyAttack logic
 /// </remarks>
 /// <param name="args">BeforeEnemyAttackEventArgs</param>
 public virtual void OnBeforeEnemyAttack(BeforeEnemyAttackEventArgs args)
 {
 }
示例#3
0
文件: Thresh.cs 项目: lanyi777/CN
        public override void OnBeforeEnemyAttack(BeforeEnemyAttackEventArgs args)
        {
            if (Q.CastCheck(args.Caster, "Misc.Q.OnAttack") && (ComboMode || HarassMode) &&
                args.Caster == Target && args.Type == Packet.AttackTypePacket.TargetedAA)
            {
                var collision = Collision.GetCollision(new List<Vector3> {args.Caster.Position},
                    new PredictionInput {Delay = 0.5f, Radius = 70, Speed = 1900});

                if (collision.Count == 0)
                {
                    Q.Cast(args.Caster.Position, UsePackets);
                }
            }
        }