Spark Spreader is properly 20 seconds

Oops! Main.rand.Next having exclusive max value strikes again!
This commit is contained in:
CongratsIsTrash authored and GitHub committed 2026-01-10 20:57:07 -05:00
1 parent d673b097a4
commit 04de13609b
1 file changed
+2 -2
+2 -2
View File
@@ -67,13 +67,13 @@ namespace CalamityMod.Projectiles.Ranged
//Due to Spark Spreader's tier, I am making this be random of 5-20 seconds
public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone)
{
target.AddBuff(BuffID.OnFire, 60 * Main.rand.Next(5, 20));
target.AddBuff(BuffID.OnFire, 60 * Main.rand.Next(5, 20+1));
SpawnSparks(5);
}
public override void OnHitPlayer(Player target, Player.HurtInfo info)
{
target.AddBuff(BuffID.OnFire, 60 * Main.rand.Next(5, 20));
target.AddBuff(BuffID.OnFire, 60 * Main.rand.Next(5, 20+1));
SpawnSparks(5);
}