mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-22 23:30:14 +00:00
feat: display creature type on target frame
Show creature classification (Beast, Humanoid, Demon, etc.) next to the level on the target frame. Useful for knowing which CC abilities apply (Polymorph → Humanoid/Beast, Banish → Demon/Elemental, etc.).
This commit is contained in:
parent
1ea9334eca
commit
c8f80339f1
2 changed files with 34 additions and 0 deletions
|
|
@ -674,6 +674,16 @@ public:
|
|||
auto it = creatureInfoCache.find(entry);
|
||||
return (it != creatureInfoCache.end()) ? static_cast<int>(it->second.rank) : -1;
|
||||
}
|
||||
// Returns creature type (1=Beast,2=Dragonkin,...,7=Humanoid,...) or 0 if not cached
|
||||
uint32_t getCreatureType(uint32_t entry) const {
|
||||
auto it = creatureInfoCache.find(entry);
|
||||
return (it != creatureInfoCache.end()) ? it->second.creatureType : 0;
|
||||
}
|
||||
// Returns creature family (e.g. pet family for beasts) or 0
|
||||
uint32_t getCreatureFamily(uint32_t entry) const {
|
||||
auto it = creatureInfoCache.find(entry);
|
||||
return (it != creatureInfoCache.end()) ? it->second.family : 0;
|
||||
}
|
||||
|
||||
// ---- Phase 2: Combat ----
|
||||
void startAutoAttack(uint64_t targetGuid);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue