Skip to content

Commit

Permalink
Player/Quest: Add broadcast for dyn values on quest reward
Browse files Browse the repository at this point in the history
  • Loading branch information
killerwife committed Jan 17, 2025
1 parent a0bf3a1 commit 685b598
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/game/Entities/Player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14794,6 +14794,7 @@ void Player::RewardQuest(Quest const* pQuest, uint32 reward, Object* questGiver,
itr->second->ApplyOrRemoveSpellIfCan(this, zone, area, false);

// resend quests status directly
UpdateForQuestWorldObjects();
SendQuestGiverStatusMultiple();
}

Expand Down Expand Up @@ -22031,7 +22032,8 @@ void Player::UpdateForQuestWorldObjects()
if (m_clientGUID.IsGameObject())
{
if (GameObject* obj = GetMap()->GetGameObject(m_clientGUID))
obj->BuildValuesUpdateBlockForPlayerWithFlags(updateData, this, UF_FLAG_DYNAMIC);
if (sObjectMgr.IsGameObjectForQuests(obj->GetEntry()))
obj->BuildValuesUpdateBlockForPlayerWithFlags(updateData, this, UF_FLAG_DYNAMIC);
}
else if (m_clientGUID.IsCreatureOrVehicle())
{
Expand Down

0 comments on commit 685b598

Please sign in to comment.