From a949ca7252452e972a91b180b240fd11d4e377fa Mon Sep 17 00:00:00 2001 From: termigator1359 <45545085+termigator1359@users.noreply.github.com> Date: Tue, 14 Jul 2020 12:53:18 -0400 Subject: [PATCH] defective sphere bug fix --- Projectiles/CalamityGlobalProjectile.cs | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/Projectiles/CalamityGlobalProjectile.cs b/Projectiles/CalamityGlobalProjectile.cs index c1bb8f933b..3c71b05887 100644 --- a/Projectiles/CalamityGlobalProjectile.cs +++ b/Projectiles/CalamityGlobalProjectile.cs @@ -1102,14 +1102,13 @@ namespace CalamityMod.Projectiles crit = Main.rand.NextBool(6); } - //Needs to be done in here. If done in the projectile file, it's overridden by the thing above - if (projectile.type == ProjectileType() && projectile.ai[0] == 1f) - crit = true; - if (rogue && stealthStrike && modPlayer.stealthStrikeAlwaysCrits) crit = true; - //Done here since crit calcs are overridden here + //Following things need to be done in here. If done in the projectile file, it's overridden by the thing above + if (projectile.type == ProjectileType() && projectile.ai[0] == 1f) + crit = true; + if (projectile.type == ProjectileType()) { double damageMult = 1D; @@ -1123,6 +1122,13 @@ namespace CalamityMod.Projectiles } damage = (int)(damage * damageMult); } + + if (projectile.type == ProjectileType()) + { + damage = (int)(damage * 1.2); + if (!crit) + crit = Main.rand.NextBool(10); + } } } #endregion