diff --git a/Items/Weapons/Rogue/GodsParanoia.cs b/Items/Weapons/Rogue/GodsParanoia.cs index 83056c299e..ff7aa0d399 100644 --- a/Items/Weapons/Rogue/GodsParanoia.cs +++ b/Items/Weapons/Rogue/GodsParanoia.cs @@ -69,12 +69,7 @@ Right click to delete all existing spiky balls"); { CalamityPlayer modPlayer = player.Calamity(); modPlayer.killSpikyBalls = false; - if (player.altFunctionUse == 2) - { - modPlayer.killSpikyBalls = true; - return false; - } - if (player.Calamity().StealthStrikeAvailable()) //setting the stealth strike + if (modPlayer.StealthStrikeAvailable()) //setting the stealth strike { int stealth = Projectile.NewProjectile(position, new Vector2(speedX, speedY), type, damage, knockBack, player.whoAmI, 0f, 0f); Main.projectile[stealth].Calamity().stealthStrike = true; @@ -85,6 +80,8 @@ Right click to delete all existing spiky balls"); public override bool AltFunctionUse(Player player) { + CalamityPlayer modPlayer = player.Calamity(); + modPlayer.killSpikyBalls = true; return true; } diff --git a/Items/Weapons/Rogue/HellsSun.cs b/Items/Weapons/Rogue/HellsSun.cs index d4bcc89035..38c01c5cd8 100644 --- a/Items/Weapons/Rogue/HellsSun.cs +++ b/Items/Weapons/Rogue/HellsSun.cs @@ -65,17 +65,11 @@ 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) { CalamityPlayer modPlayer = player.Calamity(); modPlayer.killSpikyBalls = false; - if (player.altFunctionUse == 2) - { - modPlayer.killSpikyBalls = true; - return false; - } - if (player.Calamity().StealthStrikeAvailable()) //setting the stealth strike + if (modPlayer.StealthStrikeAvailable()) //setting the stealth strike { int stealth = Projectile.NewProjectile(position, new Vector2(speedX, speedY), ModContent.ProjectileType(), (int)(damage * SdamageMult), knockBack, player.whoAmI, 0f, 0f); Main.projectile[stealth].Calamity().stealthStrike = true; @@ -88,6 +82,8 @@ namespace CalamityMod.Items.Weapons.Rogue public override bool AltFunctionUse(Player player) { + CalamityPlayer modPlayer = player.Calamity(); + modPlayer.killSpikyBalls = true; return true; } diff --git a/Items/Weapons/Rogue/PoisonPack.cs b/Items/Weapons/Rogue/PoisonPack.cs index c0b680eb27..e26e270cd5 100644 --- a/Items/Weapons/Rogue/PoisonPack.cs +++ b/Items/Weapons/Rogue/PoisonPack.cs @@ -65,12 +65,7 @@ namespace CalamityMod.Items.Weapons.Rogue { CalamityPlayer modPlayer = player.Calamity(); modPlayer.killSpikyBalls = false; - if (player.altFunctionUse == 2) - { - modPlayer.killSpikyBalls = true; - return false; - } - if (player.Calamity().StealthStrikeAvailable()) //setting the stealth strike + if (modPlayer.StealthStrikeAvailable()) //setting the stealth strike { int stealth = Projectile.NewProjectile(position, new Vector2(speedX, speedY), type, damage, knockBack, player.whoAmI, 0f, 0f); Main.projectile[stealth].Calamity().stealthStrike = true; @@ -81,6 +76,8 @@ namespace CalamityMod.Items.Weapons.Rogue public override bool AltFunctionUse(Player player) { + CalamityPlayer modPlayer = player.Calamity(); + modPlayer.killSpikyBalls = true; return true; } diff --git a/Items/Weapons/Rogue/SkyStabber.cs b/Items/Weapons/Rogue/SkyStabber.cs index b539866fdc..bf1ae74ec7 100644 --- a/Items/Weapons/Rogue/SkyStabber.cs +++ b/Items/Weapons/Rogue/SkyStabber.cs @@ -65,12 +65,7 @@ namespace CalamityMod.Items.Weapons.Rogue { CalamityPlayer modPlayer = player.Calamity(); modPlayer.killSpikyBalls = false; - if (player.altFunctionUse == 2) - { - modPlayer.killSpikyBalls = true; - return false; - } - if (player.Calamity().StealthStrikeAvailable()) //setting the stealth strike + if (modPlayer.StealthStrikeAvailable()) //setting the stealth strike { int stealth = Projectile.NewProjectile(position, new Vector2(speedX, speedY), ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0f, 0f); Main.projectile[stealth].Calamity().stealthStrike = true; @@ -81,6 +76,8 @@ namespace CalamityMod.Items.Weapons.Rogue public override bool AltFunctionUse(Player player) { + CalamityPlayer modPlayer = player.Calamity(); + modPlayer.killSpikyBalls = true; return true; }