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
@@ -1287,7 +1287,7 @@ namespace Game.Entities
if (GetGoInfo().GetServerOnly() != 0 && !allowServersideObjects)
return true;
if (GetDisplayId() == 0)
if (GetDisplayId() == 0 && GetGoInfo().IsDisplayMandatory())
return true;
return false;