aboutsummaryrefslogtreecommitdiff
path: root/src/game/Creature.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/Creature.cpp')
-rw-r--r--src/game/Creature.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/game/Creature.cpp b/src/game/Creature.cpp
index a9b4aa0bec5..dda642c9504 100644
--- a/src/game/Creature.cpp
+++ b/src/game/Creature.cpp
@@ -724,6 +724,7 @@ bool Creature::Create(uint32 guidlow, Map *map, uint32 phaseMask, uint32 Entry,
}
LoadCreaturesAddon();
}
+ SetDisplayId(GetCreatureInfo()->GetRandomValidModelId());
return bResult;
}
@@ -1843,6 +1844,8 @@ void Creature::Respawn(bool force)
else
setDeathState( JUST_ALIVED );
+ SetDisplayId(cinfo->GetRandomValidModelId());
+
//Call AI respawn virtual function
AI()->JustRespawned();