Beispiel #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);
                }
            }
        }
Beispiel #2
0
 /// <summary>
 ///     OnBeforeEnemyAttack
 /// </summary>
 /// <remarks>
 ///     override to Implement OnBeforeEnemyAttack logic
 /// </remarks>
 /// <param name="args">BeforeEnemyAttackEventArgs</param>
 public virtual void OnBeforeEnemyAttack(BeforeEnemyAttackEventArgs args)
 {
 }
Beispiel #3
0
        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);
                }
            }
        }