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:
Ovahlord
2021-02-28 16:27:05 +01:00
parent 288f772b70
commit 6b0f11d6b9

View File

@@ -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);