Core/GameObjects: Allow certain types to be sent to the client without display
Port From (https://github.com/TrinityCore/TrinityCore/commit/6c71a84e6cd980cfe9a35421e8473dceebafba5b)
This commit is contained in:
@@ -1287,7 +1287,7 @@ namespace Game.Entities
|
|||||||
if (GetGoInfo().GetServerOnly() != 0 && !allowServersideObjects)
|
if (GetGoInfo().GetServerOnly() != 0 && !allowServersideObjects)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
if (GetDisplayId() == 0)
|
if (GetDisplayId() == 0 && GetGoInfo().IsDisplayMandatory())
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
@@ -712,6 +712,12 @@ namespace Game.Entities
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public bool IsDisplayMandatory() => type switch
|
||||||
|
{
|
||||||
|
GameObjectTypes.SpellFocus or GameObjectTypes.Multi or GameObjectTypes.SiegeableMulti => false,
|
||||||
|
_ => true
|
||||||
|
};
|
||||||
|
|
||||||
public void InitializeQueryData()
|
public void InitializeQueryData()
|
||||||
{
|
{
|
||||||
QueryData = new QueryGameObjectResponse();
|
QueryData = new QueryGameObjectResponse();
|
||||||
|
|||||||
Reference in New Issue
Block a user