From 702aba428df71fbe046d99c784d969d7b6775ef6 Mon Sep 17 00:00:00 2001 From: doze-zoze Date: Thu, 22 Jan 2026 14:35:20 -0600 Subject: [PATCH] clone is invincible outside of arena, dog cursor respects hiding ui --- CalPlayer/CalamityPlayerDrawEffects.cs | 2 +- NPCs/CalClone/CalamitasClone.cs | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/CalPlayer/CalamityPlayerDrawEffects.cs b/CalPlayer/CalamityPlayerDrawEffects.cs index 88be2f9439..9863dc277c 100644 --- a/CalPlayer/CalamityPlayerDrawEffects.cs +++ b/CalPlayer/CalamityPlayerDrawEffects.cs @@ -118,7 +118,7 @@ namespace CalamityMod.CalPlayer break; } } - if (DoG != null && Main.mapStyle != 2) + if (DoG != null && Main.mapStyle != 2 && !Main.hideUI) { int drawCount = calamityPlayer.trippy ? 4 : 1; diff --git a/NPCs/CalClone/CalamitasClone.cs b/NPCs/CalClone/CalamitasClone.cs index b0c44f9306..7f96e910bc 100644 --- a/NPCs/CalClone/CalamitasClone.cs +++ b/NPCs/CalClone/CalamitasClone.cs @@ -386,6 +386,14 @@ namespace CalamityMod.NPCs.CalClone // Target variable Player player = Main.player[NPC.target]; + + //Invincible outside of arena + if (ArenaBox is not null) + { + if (!Collision.CheckAABBvAABBCollision(ArenaBox.TopLeft,ArenaBox.Size,player.position,player.Size)) + NPC.dontTakeDamage = true; + } + // Rotation Vector2 npcCenter = new Vector2(NPC.Center.X, NPC.position.Y + NPC.height - 59f); Vector2 lookAt = new Vector2(player.position.X - (player.width / 2), player.position.Y - (player.height / 2));