mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-02-05 08:28:57 +01:00
Core/Creatures: always fall back to base creature data when selecting display IDs for difficulty entries
Some sniffed query packets contain display IDs for difficulty entries that are completely wrong so we are safe to assume that we always fall back to the display of the original creature ID instead of the one of the difficulty entry
This commit is contained in:
@@ -518,7 +518,7 @@ bool Creature::InitEntry(uint32 entry, CreatureData const* data /*= nullptr*/)
|
||||
return false;
|
||||
}
|
||||
|
||||
uint32 displayID = ObjectMgr::ChooseDisplayId(GetCreatureTemplate(), data);
|
||||
uint32 displayID = ObjectMgr::ChooseDisplayId(normalInfo, data);
|
||||
CreatureModelInfo const* minfo = nullptr;
|
||||
if (!data || !data->displayid)
|
||||
minfo = sObjectMgr->GetCreatureModelRandomGender(&displayID);
|
||||
|
||||
Reference in New Issue
Block a user