mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 18:36:31 +01:00
Core/Creature: restore previous behavior of random gender on respawn
Little regression added with 253c0f3d07
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user