From 3dd6d727a9af2c83270e3aa733a001e594dcec83 Mon Sep 17 00:00:00 2001
From: dg <dg@51575b47-30f0-44d4-a5cc-537603b46e54>
Date: Tue, 17 May 2011 21:08:30 +0000
Subject: [PATCH] Derth arena and trollmire treasure quests now correctly
 finishes

git-svn-id: http://svn.net-core.org/repos/t-engine4@3403 51575b47-30f0-44d4-a5cc-537603b46e54
---
 game/modules/tome/data/quests/arena-unlock.lua       | 4 ++++
 game/modules/tome/data/quests/trollmire-treasure.lua | 6 +-----
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/game/modules/tome/data/quests/arena-unlock.lua b/game/modules/tome/data/quests/arena-unlock.lua
index a70a460fc9..ebd2ec50e2 100644
--- a/game/modules/tome/data/quests/arena-unlock.lua
+++ b/game/modules/tome/data/quests/arena-unlock.lua
@@ -26,3 +26,7 @@ desc = function(self, who)
 	end
 	return table.concat(desc, "\n")
 end
+
+on_status_change = function(self, who, status, sub)
+	if self:isCompleted() then who:setQuestStatus(self.id, engine.Quest.DONE) end
+end
diff --git a/game/modules/tome/data/quests/trollmire-treasure.lua b/game/modules/tome/data/quests/trollmire-treasure.lua
index ffff1b1f75..9f298f672b 100644
--- a/game/modules/tome/data/quests/trollmire-treasure.lua
+++ b/game/modules/tome/data/quests/trollmire-treasure.lua
@@ -29,11 +29,7 @@ desc = function(self, who)
 end
 
 on_status_change = function(self, who, status, sub)
-	if sub then
-		if self:isCompleted() then
-			who:setQuestStatus(self.id, engine.Quest.DONE)
-		end
-	end
+	if self:isCompleted() then who:setQuestStatus(self.id, engine.Quest.DONE) end
 end
 
 on_grant = function(self)
-- 
GitLab