feat: show Elite/Rare/Boss classification badge in target frame

Reads creature rank (0=Normal, 1=Elite, 2=RareElite, 3=Boss, 4=Rare)
from the existing creatureInfoCache populated by creature query responses.
Shows a colored badge next to the level: gold for Elite, purple for
Rare Elite, red for Boss, cyan for Rare — each with a tooltip. Adds
getCreatureRank() accessor to GameHandler for UI use.
This commit is contained in:
Kelsi 2026-03-12 14:13:09 -07:00
parent a03ee33f8c
commit 8cb0f1d0ef
2 changed files with 27 additions and 0 deletions

View file

@ -548,6 +548,12 @@ public:
}
std::string getCachedPlayerName(uint64_t guid) const;
std::string getCachedCreatureName(uint32_t entry) const;
// Returns the creature rank (0=Normal,1=Elite,2=RareElite,3=Boss,4=Rare)
// or -1 if not cached yet
int getCreatureRank(uint32_t entry) const {
auto it = creatureInfoCache.find(entry);
return (it != creatureInfoCache.end()) ? static_cast<int>(it->second.rank) : -1;
}
// ---- Phase 2: Combat ----
void startAutoAttack(uint64_t targetGuid);