Core/Entities: remove PhaseMask

* database fields and values will remain until they have been converted to their according phase IDs
This commit is contained in:
Ovahlord committed 2020-03-29 04:05:43 +02:00
1 parent ce6093f8cd
commit 9bfe43a88a
32 files changed
+121 -149

No files matched your search

+2 -2
View File
@@ -167,7 +167,7 @@ public:
guidLow = map->GenerateLowGuid<HighGuid::GameObject>();
}
if (!object->Create(guidLow, objectInfo->entry, map, 0, *player, QuaternionData(), 255, GO_STATE_READY))
if (!object->Create(guidLow, objectInfo->entry, map, *player, QuaternionData(), 255, GO_STATE_READY))
{
delete object;
return false;
@@ -182,7 +182,7 @@ public:
}
// fill the gameobject data and save to the db
object->SaveToDB(map->GetId(), (1 << map->GetSpawnMode()), player->GetPhaseMask());
object->SaveToDB(map->GetId(), (1 << map->GetSpawnMode()));
guidLow = object->GetSpawnId();
// delete the old object and do a clean load from DB with a fresh new GameObject instance.