public override void OnHitNPCWithProj(Projectile proj, NPC target, int damage, float knockback, bool crit) { if (mutatedSpore && proj.minion) { int duration = Main.rand.Next(TimerUtils.Seconds(5f), TimerUtils.Seconds(10f)); target.AddBuff(BuffID.Poisoned, duration); } }
public override void Hurt(bool pvp, bool quiet, double damage, int hitDirection, bool crit) { if (seedyNecklace && !player.HasBuff(BuffType <Buffs.Seedless>())) { int cooldown = Items.Accessories.SeedyNecklace.ActivationCooldown; player.AddBuff(BuffType <Buffs.Seedless>(), TimerUtils.Seconds(cooldown)); if (player.whoAmI == Main.myPlayer) { Items.Accessories.SeedyNecklace.CreatePoppingSeeds(player); } } }