*Add new creature_template column VehicleId
*Allow spawn vehicles *Make vehicles grid objects. --HG-- branch : trunk
This commit is contained in:
@@ -1393,6 +1393,10 @@ bool Creature::LoadFromDB(uint32 guid, Map *map)
|
||||
return false;
|
||||
}
|
||||
|
||||
if(const CreatureInfo *cInfo = objmgr.GetCreatureTemplate(data->id))
|
||||
if(cInfo->VehicleId)
|
||||
return false;
|
||||
|
||||
m_DBTableGuid = guid;
|
||||
if (map->GetInstanceId() != 0) guid = objmgr.GenerateLowGuid(HIGHGUID_UNIT);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user