Goto MAI: make [filter] an optional parameter

Defaults to all units of the side if not defined.
This commit is contained in:
mattsc 2013-07-06 12:47:45 -07:00
parent 8d8014e375
commit 2c890d5932

View file

@ -456,8 +456,8 @@ function wesnoth.wml_actions.micro_ai(cfg)
--------- Goto Micro AI - side-wide AI ------------------------------------
elseif (cfg.ai_type == 'goto') then
required_keys = { "filter", "filter_location" }
optional_keys = { "avoid_enemies", "release_all_units_at_goal", "release_unit_at_goal", "unique_goals", "use_straight_line" }
required_keys = { "filter_location" }
optional_keys = { "avoid_enemies", "filter", "release_all_units_at_goal", "release_unit_at_goal", "unique_goals", "use_straight_line" }
CA_parms = { { ca_id = 'mai_goto', score = cfg.ca_score or 300000 } }
--------- Hang Out Micro AI - side-wide AI ------------------------------------