Skip to content

Commit

Permalink
Avoid automatic selection of any reward items even if only one is ava…
Browse files Browse the repository at this point in the history
…ilable. Because auto turnin chose the wrong ring for some players in Karazhan.
  • Loading branch information
SwimmingTiger committed Jun 11, 2021
1 parent ce7e351 commit d1514c1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions ClassicCodex/quest.lua
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,10 @@ CodexQuest:SetScript("OnEvent", function(self, event, ...)
then
return
end

if (GetNumQuestChoices() <= 1) then
GetQuestReward(1)
-- Avoid automatic selection of any reward items even if only one is available.
-- Because auto turnin chose the wrong ring for some players in Karazhan.
if (GetNumQuestChoices() == 0) then
GetQuestReward(0)
end

elseif (event == "QUEST_GREETING") then
Expand Down

0 comments on commit d1514c1

Please sign in to comment.