TrinityCore/TrinityCore — Issue #3409: [Core] Quests required item count not properly updated in some cases
Author: mozvip
Created: 2011-10-08 17:29:15+00:00
State: open

When you have several quests that require the same item (for ex. 2581 and 2583) the item counts in the character_queststatus table is not updated correctly, and quest status can also be incorrect.

This is because of a bug in the Player::ItemAddedQuestCheck method, in the for loop, it will just return after a first quest that requires the item has been found. It shouldn't return as there may be other quests that need this item.

The return has to be removed.

Reproduced in 72fc756bff32e68ee02043a7d635cdee357781b1
Database version : 42 with SQL updated up to 72fc756bff32e68ee02043a7d635cdee357781b1