Skip to content

Commit

Permalink
Chat: Fix npc info parts not working with dynguid
Browse files Browse the repository at this point in the history
  • Loading branch information
killerwife committed Jan 16, 2024
1 parent 2a0fbe8 commit 8fc7986
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/game/Chat/Level3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3728,7 +3728,7 @@ bool ChatHandler::HandleNpcInfoCommand(char* /*args*/)
if (CreatureGroup* group = target->GetCreatureGroup())
PSendSysMessage("Creature group: %u", group->GetGroupEntry().Id);

if (auto vector = sObjectMgr.GetAllRandomCreatureEntries(target->GetGUIDLow()))
if (auto vector = sObjectMgr.GetAllRandomCreatureEntries(target->GetDbGuid()))
{
std::string output;
for (uint32 entry : *vector)
Expand All @@ -3745,7 +3745,7 @@ bool ChatHandler::HandleNpcInfoCommand(char* /*args*/)
SendSysMessage(LANG_NPCINFO_TRAINER);
}

ShowNpcOrGoSpawnInformation<Creature>(target->GetGUIDLow());
ShowNpcOrGoSpawnInformation<Creature>(target->GetDbGuid());
return true;
}

Expand Down

0 comments on commit 8fc7986

Please sign in to comment.