Fixed Profaned Partisan bug when killing a target while impaled

This commit is contained in:
doze-zoze committed 2026-04-24 20:16:08 -05:00
1 parent b2282c72ae
commit dfdd83a1db
1 file changed
+1 -1
+1 -1
View File
@@ -65,8 +65,8 @@ namespace CalamityMod.Projectiles.Rogue
if (!Main.npc[(int)StuckEnemyID - 1].active)
{
StuckEnemyID = 0;
Projectile.velocity = -Vector2.UnitY.RotatedByRandom(0.25f) * Main.rand.NextFloat(0, 1f);
Projectile.tileCollide = true;
Projectile.timeLeft = ExplodeTime;
return;
}
Projectile.Center = Main.npc[(int)StuckEnemyID - 1].Center + Vector2.UnitX.RotatedBy(StuckEnemyRotation) * StuckEnemyDistance;