diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index 30febb2041..7806928ba3 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -4222,6 +4222,9 @@ namespace CalamityMod.CalPlayer public override void OnRespawn(Player player) { thirdSageH = true; + + // The player rotation can be off if the player dies at the right time when using Final Dawn. + player.fullRotation = 0f; } #endregion diff --git a/Projectiles/Rogue/FinalDawnThrow2.cs b/Projectiles/Rogue/FinalDawnThrow2.cs index 6bb8d51475..18ce66d4a1 100644 --- a/Projectiles/Rogue/FinalDawnThrow2.cs +++ b/Projectiles/Rogue/FinalDawnThrow2.cs @@ -64,6 +64,18 @@ namespace CalamityMod.Projectiles.Rogue projectile.localAI[0] = 1; } + // Kill any hooks from the projectile owner. + for (int i = 0; i < Main.projectile.Length; i++) + { + Projectile proj = Main.projectile[i]; + + if (!proj.active || proj.owner != player.whoAmI || proj.aiStyle != 7) + continue; + + if (proj.aiStyle == 7) + proj.Kill(); + } + projectile.spriteDirection = projectile.velocity.X > 0 ? 1 : -1; projectile.rotation += 0.25f * projectile.direction; player.Center = projectile.Center; @@ -71,7 +83,7 @@ namespace CalamityMod.Projectiles.Rogue player.fullRotation = projectile.rotation; player.direction = projectile.direction; player.heldProj = projectile.whoAmI; - player.bodyFrame.Y = 1 * player.bodyFrame.Height; + player.bodyFrame.Y = player.bodyFrame.Height; player.immuneNoBlink = true; player.immuneTime = 10;