Skip to content

Commit

Permalink
Player/Quest: Fix Player::UpdateForQuestWorldObjects for condition id…
Browse files Browse the repository at this point in the history
… case
  • Loading branch information
killerwife committed Jan 18, 2025
1 parent 685b598 commit 34b2ea2
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions src/game/Entities/Player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22045,15 +22045,8 @@ void Player::UpdateForQuestWorldObjects()
if (!obj->HasFlag(UNIT_NPC_FLAGS, UNIT_NPC_FLAG_SPELLCLICK))
continue;

SpellClickInfoMapBounds clickPair = sObjectMgr.GetSpellClickInfoMapBounds(obj->GetEntry());
for (SpellClickInfoMap::const_iterator _itr = clickPair.first; _itr != clickPair.second; ++_itr)
{
if (_itr->second.questStart || _itr->second.questEnd)
{
obj->BuildCreateUpdateBlockForPlayer(&updateData, this);
break;
}
}
if (canSeeSpellClickOn(obj))
obj->BuildCreateUpdateBlockForPlayer(&updateData, this);
}
}
for (size_t i = 0; i < updateData.GetPacketCount(); ++i)
Expand Down

0 comments on commit 34b2ea2

Please sign in to comment.