From 6bf0bec1a6d1bfeb893e98d6d941b8824f209077 Mon Sep 17 00:00:00 2001 From: Doze-Zoze Date: Fri, 12 Jun 2026 11:39:20 -0500 Subject: [PATCH] fixed quagmire --- Projectiles/CalamityGlobalProjectile.cs | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Projectiles/CalamityGlobalProjectile.cs b/Projectiles/CalamityGlobalProjectile.cs index 85838b619c..dc92646769 100644 --- a/Projectiles/CalamityGlobalProjectile.cs +++ b/Projectiles/CalamityGlobalProjectile.cs @@ -314,7 +314,7 @@ namespace CalamityMod.Projectiles /// /// Custom update priority.
/// Calamity sorts projectiles by their update priority to fix otherwise absurdly difficult to resolve visual bugs on certain weapons.
- /// Examples include Void Eater Marionette segments detaching or Rancor's laser beam being offset from the magic circle. + /// Examples include Rancor's laser beam being offset from the magic circle. ///
public float UpdatePriority = 0f; @@ -322,6 +322,8 @@ namespace CalamityMod.Projectiles public int HomingTarget = -1; + public int storedYoyoDamage = 0; + /// /// Flag used during Rev+ Brain of Cthulhu to denote projectiles that were spawned prior to its Illusion Trick attack starting. /// @@ -516,16 +518,16 @@ namespace CalamityMod.Projectiles if (Main.player[projectile.owner].yoyoGlove && projectile.aiStyle == ProjAIStyleID.Yoyo) { // Store damage on first frame - if (projectile.localAI[2] == 0f) - projectile.localAI[2] = projectile.damage; + if (storedYoyoDamage == 0f) + storedYoyoDamage = projectile.damage; var MainYoyo = Main.projectile.First(x => x.active && x.type == projectile.type && x.owner == projectile.owner).whoAmI; // Halve damage if not the main yoyo if (projectile.whoAmI != MainYoyo) - projectile.damage = (int)(projectile.localAI[2] * 0.5f); + projectile.damage = (int)(storedYoyoDamage * 0.5f); else - projectile.damage = (int)projectile.localAI[2]; + projectile.damage = storedYoyoDamage; } if (projectile.minion && ExplosiveEnchantCountdown > 0)