From c6ed1ad1e333ed8fde73cdcbeceeba813501a989 Mon Sep 17 00:00:00 2001 From: GinYuH <72181395+GinYuH@users.noreply.github.com> Date: Mon, 19 Feb 2024 10:30:07 -0800 Subject: [PATCH] placed alpha minnows no longer spawn shoals --- NPCs/SunkenSea/AlphaSeaMinnow.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/NPCs/SunkenSea/AlphaSeaMinnow.cs b/NPCs/SunkenSea/AlphaSeaMinnow.cs index 872246b27b..0ec3ad7c64 100644 --- a/NPCs/SunkenSea/AlphaSeaMinnow.cs +++ b/NPCs/SunkenSea/AlphaSeaMinnow.cs @@ -50,6 +50,12 @@ namespace CalamityMod.NPCs.SunkenSea public override void OnSpawn(IEntitySource source) { + // Alphas released by the player do not spawn a shoal of minnows + if (source is EntitySource_Parent parentSource && parentSource.Entity is Player) + { + return; + } + // Spawn a shoal of minnows int fishCount = Main.rand.Next(5, 10); for (int i = 0; i < fishCount; i++) {