From abf3c5feece5e4c0922ace2e36cb1a3de89e1474 Mon Sep 17 00:00:00 2001 From: ben-tk <45545085+ben-tk@users.noreply.github.com> Date: Thu, 27 Oct 2022 11:40:01 -0400 Subject: [PATCH] cooldown no longer is tied to the vanilla cooldown config since there's no vanilla buff --- CalPlayer/CalamityPlayer.cs | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index 6cf0e996d9..ce19dd17d6 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -3414,18 +3414,18 @@ namespace CalamityMod.CalPlayer break; } } + } - // Add a cooldown display for the vanilla lifesteal cooldown, which is active when negative - if (Player.lifeSteal < 0f) - { - float duration = Player.lifeSteal; - float baseCooldown = Main.expertMode ? 0.5f : 0.6f; - float lifeStealNerf = BossRushEvent.BossRushActive ? 0.3f : CalamityWorld.death ? 0.25f : CalamityWorld.revenge ? 0.2f : Main.expertMode ? 0.15f : 0.1f; - duration /= baseCooldown - lifeStealNerf; - duration *= -1f; - if (!Player.HasCooldown(LifeSteal.ID) || (cooldowns[LifeSteal.ID].duration < (int)duration)) - Player.AddCooldown(LifeSteal.ID, (int)duration); - } + // Add a cooldown display for the vanilla lifesteal cooldown, which is active when negative + if (Player.whoAmI == Main.myPlayer && Player.lifeSteal < 0f) + { + float duration = Player.lifeSteal; + float baseCooldown = Main.expertMode ? 0.5f : 0.6f; + float lifeStealNerf = BossRushEvent.BossRushActive ? 0.3f : CalamityWorld.death ? 0.25f : CalamityWorld.revenge ? 0.2f : Main.expertMode ? 0.15f : 0.1f; + duration /= baseCooldown - lifeStealNerf; + duration *= -1f; + if (!Player.HasCooldown(LifeSteal.ID) || (cooldowns[LifeSteal.ID].duration < (int)duration)) + Player.AddCooldown(LifeSteal.ID, (int)duration); } ForceVariousEffects();