From d321ee8fb11ec1a88f4d2cf6f6a825bcb202a4e7 Mon Sep 17 00:00:00 2001 From: GinYuH <72181395+GinYuH@users.noreply.github.com> Date: Fri, 5 Apr 2024 21:00:23 -0700 Subject: [PATCH] fixed lifesteal cd disabling scarlet stealth hexagram --- Projectiles/Rogue/ScarletDevilProjectile.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Projectiles/Rogue/ScarletDevilProjectile.cs b/Projectiles/Rogue/ScarletDevilProjectile.cs index 5be9d3db2a..5d429a1827 100644 --- a/Projectiles/Rogue/ScarletDevilProjectile.cs +++ b/Projectiles/Rogue/ScarletDevilProjectile.cs @@ -127,6 +127,9 @@ namespace CalamityMod.Projectiles.Rogue if (!Projectile.Calamity().stealthStrike) return; + // Spawn a bloom of bullets. + SpawnOnStealthStrikeBullets(); + // Give on-heal effects from stealth strikes. int heal = (int)Math.Round(hit.Damage * 0.01); if (heal > BalancingConstants.LifeStealCap) @@ -136,9 +139,6 @@ namespace CalamityMod.Projectiles.Rogue return; CalamityGlobalProjectile.SpawnLifeStealProjectile(Projectile, Main.player[Projectile.owner], heal, ProjectileID.VampireHeal, BalancingConstants.LifeStealRange); - - // And spawn a bloom of bullets. - SpawnOnStealthStrikeBullets(); } public override void OnHitPlayer(Player target, Player.HurtInfo info) @@ -148,6 +148,9 @@ namespace CalamityMod.Projectiles.Rogue if (!Projectile.Calamity().stealthStrike) return; + // Spawn a bloom of bullets. + SpawnOnStealthStrikeBullets(); + // Give on-heal effects from stealth strikes. int heal = (int)Math.Round(info.Damage * 0.01); if (heal > BalancingConstants.LifeStealCap) @@ -157,9 +160,6 @@ namespace CalamityMod.Projectiles.Rogue return; CalamityGlobalProjectile.SpawnLifeStealProjectile(Projectile, Main.player[Projectile.owner], heal, ProjectileID.VampireHeal, BalancingConstants.LifeStealRange); - - // And spawn a bloom of bullets. - SpawnOnStealthStrikeBullets(); } internal float WidthFunction(float completionRatio)