Core/Players: unlock the item appearance of unselected quest rewards as well when rewarding quests

This commit is contained in:
luis
2026-08-29 17:22:37 -03:00
parent fbf9df9340
commit 7b786fac7a
+7 -1
View File
@@ -15400,7 +15400,9 @@ void Player::RewardQuest(Quest const* quest, LootItemType rewardType, uint32 rew
{
for (uint32 i = 0; i < QUEST_REWARD_CHOICES_COUNT; ++i)
{
if (quest->RewardChoiceItemId[i] && quest->RewardChoiceItemType[i] == LootItemType::Item && quest->RewardChoiceItemId[i] == rewardId)
if (quest->RewardChoiceItemId[i] && quest->RewardChoiceItemType[i] == LootItemType::Item)
{
if (quest->RewardChoiceItemId[i] == rewardId)
{
ItemPosCountVec dest;
if (CanStoreNewItem(NULL_BAG, NULL_SLOT, dest, rewardId, quest->RewardChoiceItemCount[i]) == EQUIP_ERR_OK)
@@ -15409,6 +15411,10 @@ void Player::RewardQuest(Quest const* quest, LootItemType rewardType, uint32 rew
SendNewItem(item, quest->RewardChoiceItemCount[i], true, false);
}
}
// Add the remaining item appearances for the quest if possible
GetSession()->GetCollectionMgr()->AddItemAppearance(quest->RewardChoiceItemId[i]);
}
}
}