wesnoth/data/ai/formula/scouting_move.fai
2017-10-01 13:43:27 -07:00

10 lines
313 B
Plaintext

wfl 'scouting_move.fai'
if(size(villages) != 0,
move(me.loc, nearest_loc(nearest_loc(me.loc,villages),unit_moves(me.loc))),
move(me.loc, nearest_loc(nearest_loc(me.loc,shroud),unit_moves(me.loc))))
where villages = filter(unit_moves(me.loc),is_unowned_village(map,x,y)),
shroud = find_shroud()
wflend