clone is invincible outside of arena, dog cursor respects hiding ui

This commit is contained in:
doze-zoze committed 2026-01-22 14:35:20 -06:00
1 parent f283a59cb1
commit 702aba428d
2 files changed
+9 -1

No files matched your search

+1 -1
View File
@@ -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;
+8
View File
@@ -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));