From acb65cdfbb825d6774164df33241ff9a35e704d8 Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Fri, 26 Nov 2021 13:01:52 -0500 Subject: [PATCH] Changed the rules of DSO so Condemnation works with it. --- NPCs/CalamityGlobalNPC.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/NPCs/CalamityGlobalNPC.cs b/NPCs/CalamityGlobalNPC.cs index 1381adca8f..e65ddb145b 100644 --- a/NPCs/CalamityGlobalNPC.cs +++ b/NPCs/CalamityGlobalNPC.cs @@ -3563,8 +3563,11 @@ namespace CalamityMod.NPCs } // Don't allow large hitbox projectiles or explosions to "snipe" enemies. + // Hitbox criteria were changed to allow long one dimensional projectiles so that Condemnation would work. bool hitBullseye = false; - if (bullseye != null && projectile.ranged && (projectile.width + projectile.height) / 2 <= 25 && projectile.velocity != Vector2.Zero) + bool acceptableVelocity = projectile.velocity != Vector2.Zero; + bool acceptableHitbox = (projectile.width < 36) || (projectile.height < 36); + if (bullseye != null && projectile.ranged && acceptableVelocity && acceptableHitbox) { if (bullseye != null) {