Core/Creature: restore previous behavior of random gender on respawn

Little regression added with 253c0f3d07
This commit is contained in:
ariel-
2017-03-08 12:19:26 -03:00
committed by Aokromes
parent 7871583016
commit 553ae42111

View File

@@ -1768,7 +1768,11 @@ void Creature::Respawn(bool force)
setDeathState(JUST_RESPAWNED);
uint32 displayID = GetNativeDisplayId();
SetDisplayId(displayID);
if (sObjectMgr->GetCreatureModelRandomGender(&displayID))
{
SetDisplayId(displayID);
SetNativeDisplayId(displayID);
}
GetMotionMaster()->InitDefault();
//Re-initialize reactstate that could be altered by movementgenerators