diff --git a/Projectiles/Magic/EternityBook.cs b/Projectiles/Magic/EternityBook.cs index 66419f62ed..571189b2b5 100644 --- a/Projectiles/Magic/EternityBook.cs +++ b/Projectiles/Magic/EternityBook.cs @@ -34,7 +34,7 @@ namespace CalamityMod.Projectiles.Magic projectile.ai[0]++; if (projectile.ai[0] == 1f) { - NPC target = projectile.Center.ClosestNPCAt(4400f, true, true); + NPC target = Main.MouseWorld.ClosestNPCAt(4400f, true, true); if (target != null) { diff --git a/Utilities/CalamityUtils.cs b/Utilities/CalamityUtils.cs index 8b6321153e..a8088464e4 100644 --- a/Utilities/CalamityUtils.cs +++ b/Utilities/CalamityUtils.cs @@ -382,8 +382,8 @@ namespace CalamityMod bool bossFound = false; for (int index = 0; index < Main.npc.Length; index++) { - //if we've found a valid boss target, ignore ALL targets which aren't bosses. - if (bossFound && !Main.npc[index].boss) + // If we've found a valid boss target, ignore ALL targets which aren't bosses. + if (bossFound && !(Main.npc[index].boss || Main.npc[index].type == NPCID.WallofFleshEye)) continue; if (Main.npc[index].CanBeChasedBy(null, false)) { @@ -395,7 +395,7 @@ namespace CalamityMod if (Vector2.Distance(origin, Main.npc[index].Center) < (distance + extraDistance) && canHit) { - if (Main.npc[index].boss) + if (Main.npc[index].boss || Main.npc[index].type == NPCID.WallofFleshEye) bossFound = true; distance = Vector2.Distance(origin, Main.npc[index].Center); closestTarget = Main.npc[index];