From 60ab157ba1b9635afa05a273c814d0a28cf7b806 Mon Sep 17 00:00:00 2001 From: hondacrx Date: Sun, 29 May 2022 16:08:45 -0400 Subject: [PATCH] Core/Quests: Improve ItemRemovedQuestCheck logic Port From (https://github.com/TrinityCore/TrinityCore/commit/62df5e860fd3ecfcedbcca14a6d90bf5d8a1bbef) --- Source/Game/Entities/Player/Player.Quest.cs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Source/Game/Entities/Player/Player.Quest.cs b/Source/Game/Entities/Player/Player.Quest.cs index 81a328be4..68b6726f1 100644 --- a/Source/Game/Entities/Player/Player.Quest.cs +++ b/Source/Game/Entities/Player/Player.Quest.cs @@ -2277,12 +2277,7 @@ namespace Game.Entities if (!IsQuestObjectiveCompletable(logSlot, quest, objective)) continue; - int curItemCount = GetQuestSlotObjectiveData(logSlot, objective); - if (curItemCount >= objective.Amount) // we may have more than what the status shows - curItemCount = (int)GetItemCount(entry, false); - - int newItemCount = (int)((count > curItemCount) ? 0 : curItemCount - count); - + int newItemCount = (int)GetItemCount(entry, false); // we may have more than what the status shows, so we have to iterate inventory if (newItemCount < objective.Amount) { SetQuestObjectiveData(objective, newItemCount);