Skip to content

Commit

Permalink
questing fix
Browse files Browse the repository at this point in the history
  • Loading branch information
melbaa committed Jun 22, 2024
1 parent 9388aef commit d476f57
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion TopMeOff.lua
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,9 @@ function TopMeOff_OnEvent()
if event == "QUEST_COMPLETE" then
-- if quest_found then info("QUEST_COMPLETE " .. tostring(quest_found)) end

-- no quest, nothing to do
if quest_found == nil then return end

-- find the correct choice id
local num_choices = GetNumQuestChoices()
for i=1, num_choices do
Expand All @@ -253,7 +256,7 @@ function TopMeOff_OnEvent()
end

-- no choice
if num_choices and num_choices == 0 and quest_found then
if num_choices and num_choices == 0 then
info('found ' .. quest_found)
CompleteQuest()
GetQuestReward(1)
Expand Down

0 comments on commit d476f57

Please sign in to comment.