From 7451e4e1d178498103ad6487ecc5e9971f379b24 Mon Sep 17 00:00:00 2001 From: Alex Shubert Date: Wed, 7 Mar 2012 11:07:35 +0400 Subject: [PATCH] fixed turn in procedure: there was no return clause that lead to execute every subsequental calls --- AutoTurnIn.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/AutoTurnIn.lua b/AutoTurnIn.lua index e3b4f33..9866050 100644 --- a/AutoTurnIn.lua +++ b/AutoTurnIn.lua @@ -154,7 +154,8 @@ function AutoTurnIn:QUEST_COMPLETE() if GetNumQuestChoices() > 0 then if not AutoTurnInCharacterDB.dontloot then if (quest == "tournament") then - GetQuestReward(AutoTurnInCharacterDB.tournament) + GetQuestReward(AutoTurnInCharacterDB.tournament) + return end for i=1, GetNumQuestChoices() do local m = select(11, GetItemInfo(GetQuestItemLink("choice", i))) @@ -165,6 +166,7 @@ function AutoTurnIn:QUEST_COMPLETE() end if money > 0 then -- some quests, like tournament ones, offer reputation rewards and they have no cost. GetQuestReward(index) + return else self:Print("rewards have no cost! Send a message to author please.") end -- 1.7.9.5