From 586e9e74ff2f2180f726c96441aaa809084954d7 Mon Sep 17 00:00:00 2001 From: Kelsi Date: Sat, 21 Mar 2026 08:33:54 -0700 Subject: [PATCH] feat: show grey nameplates for mobs tapped by other players Check UNIT_DYNFLAG_TAPPED_BY_PLAYER (0x0004) on hostile NPC nameplates. Mobs tagged by another player now show grey health bars instead of red, matching WoW's visual indication that the mob won't yield loot/XP. Mobs with TAPPED_BY_ALL_THREAT_LIST (0x0008) still show red since those are shared-tag mobs that give loot to everyone. --- src/ui/game_screen.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/ui/game_screen.cpp b/src/ui/game_screen.cpp index 4daf51ff..4e4fc17f 100644 --- a/src/ui/game_screen.cpp +++ b/src/ui/game_screen.cpp @@ -11695,8 +11695,16 @@ void GameScreen::renderNameplates(game::GameHandler& gameHandler) { barColor = IM_COL32(140, 140, 140, A(200)); bgColor = IM_COL32(70, 70, 70, A(160)); } else if (unit->isHostile()) { - barColor = IM_COL32(220, 60, 60, A(200)); - bgColor = IM_COL32(100, 25, 25, A(160)); + // Check if mob is tapped by another player (grey nameplate) + uint32_t dynFlags = unit->getDynamicFlags(); + bool tappedByOther = (dynFlags & 0x0004) != 0 && (dynFlags & 0x0008) == 0; // TAPPED but not TAPPED_BY_ALL_THREAT_LIST + if (tappedByOther) { + barColor = IM_COL32(160, 160, 160, A(200)); + bgColor = IM_COL32(80, 80, 80, A(160)); + } else { + barColor = IM_COL32(220, 60, 60, A(200)); + bgColor = IM_COL32(100, 25, 25, A(160)); + } } else if (isPlayer) { // Player nameplates: use class color for easy identification uint8_t cid = entityClassId(unit);