Beispiel #1
0
 public override void OnHitPvp(Player target, int damage, bool crit)
 {
     BaseWhip.OnHitAny(projectile, crit, whipSoftSound);
     if (crit || Main.rand.Next(5) == 0)
     {
         target.AddBuff(24, 180);
     }
 }
Beispiel #2
0
 public override void OnHitNPC(NPC target, int damage, float knockback, bool crit)
 {
     BaseWhip.OnHitAny(projectile, target, crit, whipSoftSound);
     if (crit || Main.rand.Next(5) == 0)
     {
         target.AddBuff(24, 180);
     }
 }