From b92e2b00f19593105e7dfbdeb2d44c8d6e29a1c8 Mon Sep 17 00:00:00 2001 From: Dominic Date: Sat, 22 May 2021 05:47:09 -0500 Subject: [PATCH] Hopefully fixed Hypothermia shoot issues --- Items/Weapons/Rogue/Hypothermia.cs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Items/Weapons/Rogue/Hypothermia.cs b/Items/Weapons/Rogue/Hypothermia.cs index a4fecafe3e..6d707166aa 100644 --- a/Items/Weapons/Rogue/Hypothermia.cs +++ b/Items/Weapons/Rogue/Hypothermia.cs @@ -9,8 +9,6 @@ namespace CalamityMod.Items.Weapons.Rogue { public class Hypothermia : RogueWeapon { - private int counter = 0; - public override void SetStaticDefaults() { DisplayName.SetDefault("Hypothermia"); @@ -47,7 +45,7 @@ namespace CalamityMod.Items.Weapons.Rogue public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) { - if (player.Calamity().StealthStrikeAvailable() && counter == 0) //setting up the stealth strikes + if (player.Calamity().StealthStrikeAvailable() && player.itemAnimation == item.useAnimation - 1) //setting up the stealth strikes { int stealth = Projectile.NewProjectile(position, new Vector2(speedX, speedY), ModContent.ProjectileType(), damage, knockBack, player.whoAmI); if (stealth.WithinBounds(Main.maxProjectiles)) @@ -61,9 +59,6 @@ namespace CalamityMod.Items.Weapons.Rogue Projectile.NewProjectile(position, new Vector2(SpeedX, SpeedY), type, damage, knockBack, player.whoAmI, Main.rand.Next(4), 0f); } - counter++; - if (counter >= item.useAnimation / item.useTime) - counter = 0; return false; }