fixed lifesteal cd disabling scarlet stealth hexagram

This commit is contained in:
GinYuH committed 2024-04-05 21:00:23 -07:00
1 parent e9b4f1578a
commit d321ee8fb1
1 file changed
+6 -6
+6 -6
View File
@@ -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)