Core/Transports: Force transport passengers into legacy spawn group
Port From (https://github.com/TrinityCore/TrinityCore/commit/068b340b6988c3edd8db2b9d62a99baebe1b031e)
This commit is contained in:
@@ -318,6 +318,8 @@ namespace Game.Entities
|
||||
public Creature CreateNPCPassenger(ulong guid, CreatureData data)
|
||||
{
|
||||
Map map = GetMap();
|
||||
if (map.GetCreatureRespawnTime(guid) != 0)
|
||||
return null;
|
||||
|
||||
Creature creature = Creature.CreateCreatureFromDB(guid, map, false, true);
|
||||
if (!creature)
|
||||
@@ -359,6 +361,8 @@ namespace Game.Entities
|
||||
GameObject CreateGOPassenger(ulong guid, GameObjectData data)
|
||||
{
|
||||
Map map = GetMap();
|
||||
if (map.GetGORespawnTime(guid) != 0)
|
||||
return null;
|
||||
|
||||
GameObject go = CreateGameObjectFromDB(guid, map, false);
|
||||
if (!go)
|
||||
|
||||
Reference in New Issue
Block a user