From ee85835085b3c27d7af2c7b4838f656ebd75e840 Mon Sep 17 00:00:00 2001
From: dg <dg@51575b47-30f0-44d4-a5cc-537603b46e54>
Date: Sat, 29 Dec 2012 13:24:59 +0000
Subject: [PATCH] Loremaster escorts provide 2 stat points

git-svn-id: http://svn.net-core.org/repos/t-engine4@6280 51575b47-30f0-44d4-a5cc-537603b46e54
---
 game/engines/default/engine/ai/simple.lua     |  2 +-
 game/modules/tome/data/chats/escort-quest.lua | 12 ++++++------
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/game/engines/default/engine/ai/simple.lua b/game/engines/default/engine/ai/simple.lua
index 152b1b921e..ed3ff0f3b0 100644
--- a/game/engines/default/engine/ai/simple.lua
+++ b/game/engines/default/engine/ai/simple.lua
@@ -26,7 +26,7 @@ newAI("move_simple", function(self)
 	if self.ai_target.actor then
 		local tx, ty
 		-- Move towards the last seen position if we have one
-		if self.ai_state.target_last_seen then
+		if self.ai_state.target_last_seen and type(self.ai_state.target_last_seen) == "table" then
 			tx, ty = self.ai_state.target_last_seen.x, self.ai_state.target_last_seen.y
 		else
 			tx, ty = self:aiSeeTargetPos(self.ai_target.actor)
diff --git a/game/modules/tome/data/chats/escort-quest.lua b/game/modules/tome/data/chats/escort-quest.lua
index 68c06f00cd..76903c8a0b 100644
--- a/game/modules/tome/data/chats/escort-quest.lua
+++ b/game/modules/tome/data/chats/escort-quest.lua
@@ -195,12 +195,12 @@ local reward_types = {
 			[Talents.T_MIND_SEAR] = 1,
 		},
 		stats = {
-			[Stats.STAT_STR] = 1,
-			[Stats.STAT_DEX] = 1,
-			[Stats.STAT_MAG] = 1,
-			[Stats.STAT_WIL] = 1,
-			[Stats.STAT_CUN] = 1,
-			[Stats.STAT_CON] = 1,
+			[Stats.STAT_STR] = 2,
+			[Stats.STAT_DEX] = 2,
+			[Stats.STAT_MAG] = 2,
+			[Stats.STAT_WIL] = 2,
+			[Stats.STAT_CUN] = 2,
+			[Stats.STAT_CON] = 2,
 		},
 	},
 }
-- 
GitLab