From cdecada971566d48cd61473966783e5a5ec53934 Mon Sep 17 00:00:00 2001 From: James R Date: Wed, 8 Mar 2023 23:31:34 -0800 Subject: [PATCH] Battle: TARGET on the player with 6 emeralds --- src/k_hud_track.cpp | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/src/k_hud_track.cpp b/src/k_hud_track.cpp index 977c65ffa..e6a7df1ed 100644 --- a/src/k_hud_track.cpp +++ b/src/k_hud_track.cpp @@ -338,10 +338,21 @@ bool is_player_tracking_target(player_t *player = stplyr) return false; } - // WANTED player sees TARGETs on players holding emeralds if (player->emeralds != 0 && K_IsPlayerWanted(stplyr)) { - return true; + // The player who is about to win because of emeralds + // gets a TARGET on them + if (K_NumEmeralds(player) == 6) // 6 out of 7 + { + return true; + } + + // WANTED player sees TARGETs on players holding + // emeralds + if (K_IsPlayerWanted(stplyr)) + { + return true; + } } return K_IsPlayerWanted(player);