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:
hondacrx
2023-04-26 07:16:01 -04:00
parent 8dc3afdf9b
commit c867ecd805
2 changed files with 7 additions and 1 deletions
@@ -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()
{
QueryData = new QueryGameObjectResponse();