mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-15 10:00:28 +00:00
feat(Core): add OnDisplayId hook (#12320)
This commit is contained in:
@@ -16359,6 +16359,8 @@ void Unit::SetDisplayId(uint32 modelId)
|
||||
// Set Gender by modelId
|
||||
if (CreatureModelInfo const* minfo = sObjectMgr->GetCreatureModelInfo(modelId))
|
||||
SetByteValue(UNIT_FIELD_BYTES_0, 2, minfo->gender);
|
||||
|
||||
sScriptMgr->OnDisplayIdChange(this, modelId);
|
||||
}
|
||||
|
||||
void Unit::RestoreDisplayId()
|
||||
|
||||
Reference in New Issue
Block a user