mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/Quests: Fix case where source item provided isn't added to the bag (#29959)
This commit is contained in:
@@ -16493,6 +16493,11 @@ void Player::ItemAddedQuestCheck(uint32 entry, uint32 count, Optional<bool> boun
|
||||
|
||||
if (updatedObjectives.size() == 1 && updatedObjectives[0]->Flags2 & QUEST_OBJECTIVE_FLAG_2_QUEST_BOUND_ITEM)
|
||||
{
|
||||
// Quest source items should ignore QUEST_OBJECTIVE_FLAG_2_QUEST_BOUND_ITEM
|
||||
if (Quest const* quest = sObjectMgr->GetQuestTemplate(updatedObjectives[0]->QuestID))
|
||||
if (quest->GetSrcItemId() == entry)
|
||||
return;
|
||||
|
||||
if (hadBoundItemObjective)
|
||||
*hadBoundItemObjective = updatedObjectives.size() == 1 && updatedObjectives[0]->Flags2 & QUEST_OBJECTIVE_FLAG_2_QUEST_BOUND_ITEM;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user