Core: Tabs sorry
This commit is contained in:
@@ -15404,9 +15404,9 @@ bool Unit::IsPolymorphed() const
|
|||||||
void Unit::SetDisplayId(uint32 modelId)
|
void Unit::SetDisplayId(uint32 modelId)
|
||||||
{
|
{
|
||||||
SetUInt32Value(UNIT_FIELD_DISPLAYID, modelId);
|
SetUInt32Value(UNIT_FIELD_DISPLAYID, modelId);
|
||||||
// Set Gender by modelId
|
// Set Gender by modelId
|
||||||
if (CreatureModelInfo const* minfo = sObjectMgr->GetCreatureModelInfo(modelId))
|
if (CreatureModelInfo const* minfo = sObjectMgr->GetCreatureModelInfo(modelId))
|
||||||
SetByteValue(UNIT_FIELD_BYTES_0, 2, minfo->gender);
|
SetByteValue(UNIT_FIELD_BYTES_0, 2, minfo->gender);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Unit::RestoreDisplayId()
|
void Unit::RestoreDisplayId()
|
||||||
|
|||||||
Reference in New Issue
Block a user