Skip to content

Commit

Permalink
Creature: Fix readout to include spawn_group_entry
Browse files Browse the repository at this point in the history
  • Loading branch information
killerwife committed Jan 1, 2025
1 parent dc20d1f commit 57a165c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/game/Chat/Level2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1249,6 +1249,8 @@ bool ChatHandler::HandleGameObjectNearCommand(char* args)
const char* name = "Random (gameobject_spawn_entry)";
if (gInfo)
name = gInfo->name;
else if (sObjectMgr.GetRandomGameObjectEntry(guid) == 0)
name = "Random (spawn_group_entry)";

uint32 spawnGroupId = 0;
if (SpawnGroupEntry* groupEntry = pl->GetMap()->GetMapDataContainer().GetSpawnGroupByGuid(guid, TYPEID_GAMEOBJECT))
Expand Down

0 comments on commit 57a165c

Please sign in to comment.