mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 22:37:03 +00:00
[11159] Remove now redundent GetDBTableGUIDLow support.
Now any creatures/gameobjects loaded base at DB data in non-instanceable/instanceable maps always have same guid as in DB data. * Also remove useless by same reasons MaNGOS::GameObjectWithDbGUIDCheck
This commit is contained in:
parent
654dac1e11
commit
04c21c95d3
20 changed files with 150 additions and 176 deletions
|
|
@ -73,7 +73,7 @@ HomeMovementGenerator<Creature>::Update(Creature &owner, const uint32& time_diff
|
|||
if (owner.GetDefaultMovementType() == IDLE_MOTION_TYPE)
|
||||
{
|
||||
// such a mob might need very exact spawning point, hence relocate to spawn-position
|
||||
if (CreatureData const* data = sObjectMgr.GetCreatureData(owner.GetDBTableGUIDLow()))
|
||||
if (CreatureData const* data = sObjectMgr.GetCreatureData(owner.GetGUIDLow()))
|
||||
{
|
||||
owner.Relocate(data->posX, data->posY, data->posZ, data->orientation);
|
||||
owner.SendHeartBeat(false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue