Core/Entities: Remove phasemask
This commit is contained in:
@@ -1324,7 +1324,7 @@ namespace Game.BattleGrounds
|
||||
// and when loading it (in go.LoadFromDB()), a new guid would be assigned to the object, and a new object would be created
|
||||
// So we must create it specific for this instance
|
||||
GameObject go = new GameObject();
|
||||
if (!go.Create(entry, GetBgMap(), PhaseMasks.Normal, new Position(x, y, z, o), rotation, 100, goState))
|
||||
if (!go.Create(entry, GetBgMap(), new Position(x, y, z, o), rotation, 100, goState))
|
||||
{
|
||||
Log.outError(LogFilter.Battleground, "Battleground.AddObject: cannot create gameobject (entry: {0}) for BG (map: {1}, instance id: {2})!", entry, m_MapId, m_InstanceID);
|
||||
return false;
|
||||
@@ -1440,7 +1440,7 @@ namespace Game.BattleGrounds
|
||||
}
|
||||
|
||||
Creature creature = new Creature();
|
||||
if (!creature.Create(map.GenerateLowGuid(HighGuid.Creature), map, PhaseMasks.Normal, entry, x, y, z, o))
|
||||
if (!creature.Create(map.GenerateLowGuid(HighGuid.Creature), map, entry, x, y, z, o))
|
||||
{
|
||||
Log.outError(LogFilter.Battleground, "Battleground.AddCreature: cannot create creature (entry: {0}) for BG (map: {1}, instance id: {2})!",
|
||||
entry, m_MapId, m_InstanceID);
|
||||
|
||||
Reference in New Issue
Block a user