EI S8: fix custom Lua CA to conform to new syntax

This commit is contained in:
mattsc 2016-09-26 07:29:05 -07:00
parent 83bc21c5d8
commit 3382f491d3

View file

@ -5,7 +5,7 @@ local BC = wesnoth.require "ai/lua/battle_calcs.lua"
local ca_ogres_flee = {}
function ca_ogres_flee:evaluation(ai, cfg, self)
function ca_ogres_flee:evaluation()
local units = wesnoth.get_units { side = wesnoth.current.side,
formula = 'movement_left > 0'
}
@ -14,7 +14,7 @@ function ca_ogres_flee:evaluation(ai, cfg, self)
return 110000
end
function ca_ogres_flee:execution(ai, cfg, self)
function ca_ogres_flee:execution()
local units = wesnoth.get_units { side = wesnoth.current.side,
formula = 'movement_left > 0'
}