Core/Transport: Set GAMEOBJECT_FLAGS from DB for transports, not hardcoded
This commit is contained in:
@@ -931,7 +931,7 @@ Transport* BattlegroundIC::CreateTransport(uint32 goEntry, uint32 period)
|
||||
float o = 1;
|
||||
|
||||
// creates the Gameobject
|
||||
if (!t->Create(sObjectMgr->GenerateLowGuid(HIGHGUID_MO_TRANSPORT), goEntry, mapid, x, y, z, o, 100, 0))
|
||||
if (!t->Create(sObjectMgr->GenerateLowGuid(HIGHGUID_MO_TRANSPORT), goEntry, mapid, x, y, z, o, 255, 0))
|
||||
{
|
||||
delete t;
|
||||
return NULL;
|
||||
|
||||
@@ -52,7 +52,7 @@ void MapManager::LoadTransports()
|
||||
uint32 period = fields[3].GetUInt32();
|
||||
uint32 scriptId = sObjectMgr->GetScriptId(fields[4].GetCString());
|
||||
|
||||
const GameObjectTemplate* goinfo = sObjectMgr->GetGameObjectTemplate(entry);
|
||||
GameObjectTemplate const* goinfo = sObjectMgr->GetGameObjectTemplate(entry);
|
||||
|
||||
if (!goinfo)
|
||||
{
|
||||
@@ -86,7 +86,7 @@ void MapManager::LoadTransports()
|
||||
float o = 1.0f;
|
||||
|
||||
// creates the Gameobject
|
||||
if (!t->Create(lowguid, entry, mapid, x, y, z, o, 100, 0))
|
||||
if (!t->Create(lowguid, entry, mapid, x, y, z, o, 255, 0))
|
||||
{
|
||||
delete t;
|
||||
continue;
|
||||
@@ -217,8 +217,7 @@ bool Transport::Create(uint32 guidlow, uint32 entry, uint32 mapid, float x, floa
|
||||
SetFloatValue(OBJECT_FIELD_SCALE_X, goinfo->size);
|
||||
|
||||
SetUInt32Value(GAMEOBJECT_FACTION, goinfo->faction);
|
||||
//SetUInt32Value(GAMEOBJECT_FLAGS, goinfo->flags);
|
||||
SetUInt32Value(GAMEOBJECT_FLAGS, MAKE_PAIR32(0x28, 0x64));
|
||||
SetUInt32Value(GAMEOBJECT_FLAGS, goinfo->flags);
|
||||
SetUInt32Value(GAMEOBJECT_LEVEL, m_period);
|
||||
SetEntry(goinfo->entry);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user