From 4b12053508ad3a22d1fa11b748c0d927f2968068 Mon Sep 17 00:00:00 2001 From: Nat Quayle Nelson Date: Mon, 4 Aug 2025 15:24:22 -0500 Subject: [PATCH] don't highlight invisible monster for targeting --- src/game/boe.graphics.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/boe.graphics.cpp b/src/game/boe.graphics.cpp index 0e2a4954..759d3579 100644 --- a/src/game/boe.graphics.cpp +++ b/src/game/boe.graphics.cpp @@ -1653,7 +1653,7 @@ void draw_targeting_line() { frame_color = sf::Color(0, 255, 0, 127); } targ = univ.target_there(which_space, TARG_MONST); - if(targ != nullptr){ + if(targ != nullptr && !(dynamic_cast(targ))->invisible){ frame_color = targ->is_friendly() ? sf::Color(0, 0, 255, 127) : sf::Color(255, 0, 0, 127); }