Merge pull request #6 from jleldridge/master

Healer Support MAI: added [filter_second] option to choose healees.
This commit is contained in:
mattsc 2013-05-09 13:18:46 -07:00
commit 5e409f5d01
3 changed files with 9 additions and 1 deletions

View file

@ -101,7 +101,10 @@ return {
formula = '$this_unit.moves = 0', { "and", cfg.filter }
}
local all_units = wesnoth.get_units{ side = wesnoth.current.side }
local all_units = wesnoth.get_units{ side = wesnoth.current.side,
{"and", cfg.filter_second}
}
local healees, units_MP = {}, {}
for i,u in ipairs(all_units) do
-- Potential healees are units without MP that don't already have a healer (also without MP) next to them

View file

@ -161,6 +161,7 @@ function wesnoth.wml_actions.micro_ai(cfg)
cfg_hs.max_threats = cfg.max_threats
cfg_hs.filter = H.get_child(cfg, "filter")
cfg_hs.filter_second = H.get_child(cfg, "filter_second")
end
-- Set up the CA add/delete parameters

View file

@ -1036,6 +1036,10 @@
name = "Jeff Breidenbach (jab)"
comment = "Bilinear interpolation"
[/entry]
[entry]
name = "Jeffrey Eldridge (jleldridge)"
email = "jleldridge27_AT_gmail.com"
[/entry]
[entry]
name = "Jeffrey (Sigurd) Westcoat (SigurdFireDragon)"
[/entry]