Skip to content

Commit

Permalink
SotBE S6: fix custom Lua CA to conform to new syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsc committed Sep 26, 2016
1 parent 3382f49 commit d2dc72a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions data/campaigns/Son_Of_The_Black_Eye/ai/ca_transport_S6.lua
Expand Up @@ -10,7 +10,7 @@ local ca_transport = {}
-- staying in deep water surrounded by deep water only
-- Also unload units onto best hexes adjacent to landing site

function ca_transport:evaluation(ai)
function ca_transport:evaluation()
local units = wesnoth.get_units { side = wesnoth.current.side, formula = 'movement_left > 0' }

for i,u in ipairs(units) do
Expand All @@ -23,7 +23,7 @@ function ca_transport:evaluation(ai)
return 0
end

function ca_transport:execution(ai)
function ca_transport:execution()
local units = wesnoth.get_units {}

-- Need all transport units plus maps of all units, all transport units and
Expand Down

0 comments on commit d2dc72a

Please sign in to comment.