From bbb2f52c855ad0e700cbb28bbee450fd8f814731 Mon Sep 17 00:00:00 2001 From: Xyk Date: Sat, 11 May 2024 16:55:14 -0700 Subject: [PATCH] Made sure Norfleet kills you so you dont get stuck if you dodge the counter hit with a dodge you still die --- Projectiles/Ranged/NorfleetCannon.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Projectiles/Ranged/NorfleetCannon.cs b/Projectiles/Ranged/NorfleetCannon.cs index 4963bd6007..8035830c5c 100644 --- a/Projectiles/Ranged/NorfleetCannon.cs +++ b/Projectiles/Ranged/NorfleetCannon.cs @@ -1,5 +1,6 @@ using System; using System.Runtime.Intrinsics.X86; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Items.Weapons.Ranged; using CalamityMod.Particles; using Humanizer; @@ -240,7 +241,13 @@ namespace CalamityMod.Projectiles.Ranged Vector2 tipPosition = Projectile.Center + Projectile.velocity.SafeNormalize(Vector2.Zero).RotatedBy(-0.05f * Projectile.direction) * 73f; if (PUNISHMENTMODE) - PostFireCooldown = 1000; + { + PostFireCooldown = 1000; + Owner.AddBuff(ModContent.BuffType(), 900); + Owner.AddBuff(ModContent.BuffType(), 900); + if (Owner.statLife > 1) + Owner.statLife = (int)(Owner.statLife * 0.99f); + } if (PostFireCooldown == 207) {