Fixed Profaned Partisan bug when killing a target while impaled
This commit is contained in:
1 parent
b2282c72ae
commit
dfdd83a1db
1 file changed
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user