Skip to content

Commit

Permalink
Fixed issue with NPC quest indicators not displaying properly.
Browse files Browse the repository at this point in the history
  • Loading branch information
comwilson committed Sep 28, 2024
1 parent 30fb438 commit 89de299
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/game/Object/Player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17741,6 +17741,7 @@ void Player::SendQuestUpdateAddCreatureOrGo(Quest const* pQuest, ObjectGuid guid
void Player::SendQuestGiverStatusMultiple()
{
uint32 count = 0;
uint32 dialogStatus = DIALOG_STATUS_NONE;

WorldPacket data(SMSG_QUESTGIVER_STATUS_MULTIPLE, 4);
data << uint32(count); // placeholder
Expand All @@ -17762,15 +17763,15 @@ void Player::SendQuestGiverStatusMultiple()
continue;
}

uint8 dialogStatus = sScriptMgr.GetDialogStatus(this, questgiver);
dialogStatus = sScriptMgr.GetDialogStatus(this, questgiver);

if (dialogStatus == DIALOG_STATUS_REWARD_REP)
if (dialogStatus > DIALOG_STATUS_REWARD_REP)
{
dialogStatus = GetSession()->getDialogStatus(this, questgiver, DIALOG_STATUS_NONE);
}

data << questgiver->GetObjectGuid();
data << uint8(dialogStatus);
data << dialogStatus;
++count;
}
else if (itr->IsGameObject())
Expand All @@ -17787,15 +17788,15 @@ void Player::SendQuestGiverStatusMultiple()
continue;
}

uint8 dialogStatus = sScriptMgr.GetDialogStatus(this, questgiver);
dialogStatus = sScriptMgr.GetDialogStatus(this, questgiver);

if (dialogStatus == DIALOG_STATUS_REWARD_REP)
if (dialogStatus > DIALOG_STATUS_REWARD_REP)
{
dialogStatus = GetSession()->getDialogStatus(this, questgiver, DIALOG_STATUS_NONE);
}

data << questgiver->GetObjectGuid();
data << uint8(dialogStatus);
data << dialogStatus;
++count;
}
}
Expand Down

0 comments on commit 89de299

Please sign in to comment.