This commit is contained in:
Altixal authored and Cameron Ewell committed 2024-07-30 18:32:08 -04:00
1 parent 8149ef0ffc
commit 5f5488efbc
1 file changed
+2 -1
+2 -1
View File
@@ -69,7 +69,8 @@ namespace CalamityMod.Projectiles.Melee
if (target is null || target.life <= 0 || !target.active || target.dontTakeDamage || target.immortal)
{
target = Projectile.Center.ClosestNPCAt(SmashHomingRange, bossPriority: true);
SmashTarget = target.whoAmI;
if (target != null)
SmashTarget = target.whoAmI;
}
// Strongly locks onto the target center