From f0a5baf9649d9a63eebdad368b48e24f332f976f Mon Sep 17 00:00:00 2001
From: dg <dg@51575b47-30f0-44d4-a5cc-537603b46e54>
Date: Sat, 14 May 2011 19:46:11 +0000
Subject: [PATCH] fix

git-svn-id: http://svn.net-core.org/repos/t-engine4@3365 51575b47-30f0-44d4-a5cc-537603b46e54
---
 game/modules/tome/class/GameState.lua | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/game/modules/tome/class/GameState.lua b/game/modules/tome/class/GameState.lua
index 7664ba7b07..b1a858f9fe 100644
--- a/game/modules/tome/class/GameState.lua
+++ b/game/modules/tome/class/GameState.lua
@@ -1288,7 +1288,9 @@ function _M:createRandomBoss(base, data)
 	b.auto_stats = {}
 
 	-- Always smart
-	b.ai = "tactical"
+	if data.ai then b.ai = data.ai
+	else b.ai = (b.rank > 3) and "tactical" or b.ai
+	end
 	b.ai_state = { talent_in=1, ai_move="move_astar" }
 
 	-- Remove default equipment, if any
-- 
GitLab