Commit f0a5baf9649d9a63eebdad368b48e24f332f976f

Authored by dg
1 parent 4fe02565

fix


git-svn-id: http://svn.net-core.org/repos/t-engine4@3365 51575b47-30f0-44d4-a5cc-537603b46e54
... ... @@ -1288,7 +1288,9 @@ function _M:createRandomBoss(base, data)
1288 1288 b.auto_stats = {}
1289 1289
1290 1290 -- Always smart
1291   - b.ai = "tactical"
  1291 + if data.ai then b.ai = data.ai
  1292 + else b.ai = (b.rank > 3) and "tactical" or b.ai
  1293 + end
1292 1294 b.ai_state = { talent_in=1, ai_move="move_astar" }
1293 1295
1294 1296 -- Remove default equipment, if any
... ...