From 3fcaab960a7ca774aef02649c4a0b998397ad330 Mon Sep 17 00:00:00 2001 From: DominicKarma42 <51094361+DominicKarma@users.noreply.github.com> Date: Tue, 31 Mar 2020 20:34:18 -0500 Subject: [PATCH] Small boomer tornado changes and birb fix --- NPCs/CalamityAI.cs | 10 ++++++++-- Projectiles/Boss/OverlyDramaticDukeSummoner.cs | 2 +- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/NPCs/CalamityAI.cs b/NPCs/CalamityAI.cs index bd88248646..e062392c14 100644 --- a/NPCs/CalamityAI.cs +++ b/NPCs/CalamityAI.cs @@ -3736,7 +3736,10 @@ namespace CalamityMod.NPCs if (calamityGlobalNPC.newAI[1] == newPhaseTimer - 60f) { SoundEffectInstance sound = Main.PlaySound(SoundID.DD2_BetsyScream, (int)npc.position.X, (int)npc.position.Y); - sound.Pitch = 0.25f; + if (sound != null) + { + sound.Pitch = 0.25f; + } } if (calamityGlobalNPC.newAI[1] >= newPhaseTimer) @@ -3757,7 +3760,10 @@ namespace CalamityMod.NPCs if (calamityGlobalNPC.newAI[0] == newPhaseTimer - 60f) { SoundEffectInstance sound = Main.PlaySound(SoundID.DD2_BetsyScream, (int)npc.position.X, (int)npc.position.Y); - sound.Pitch = 0.25f; + if (sound != null) + { + sound.Pitch = 0.25f; + } } if (calamityGlobalNPC.newAI[0] >= newPhaseTimer) diff --git a/Projectiles/Boss/OverlyDramaticDukeSummoner.cs b/Projectiles/Boss/OverlyDramaticDukeSummoner.cs index f6f350c300..27bdabc719 100644 --- a/Projectiles/Boss/OverlyDramaticDukeSummoner.cs +++ b/Projectiles/Boss/OverlyDramaticDukeSummoner.cs @@ -211,7 +211,7 @@ namespace CalamityMod.Projectiles.Boss if (dist4 < minDist) minDist = dist4; - return minDist <= 210f * projectile.scale; + return minDist <= 240f * projectile.scale; } public override void OnHitPlayer(Player target, int damage, bool crit)