Goto Micro AI: add [and] to a filter
Another efficiency improvement. This ensures that the side of the unit
is checked first before the potentially complex rest of the filter is
evaluated.
(cherry-picked from commit 6c38b8ce93
)
This commit is contained in:
parent
6a64e6e37e
commit
22ca458bfd
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,7 @@ function ca_goto:evaluation(cfg, data)
|
|||
end
|
||||
|
||||
local all_units = AH.get_units_with_moves {
|
||||
side = wesnoth.current.side,
|
||||
{ "and", { side = wesnoth.current.side } },
|
||||
{ "and", wml.get_child(cfg, "filter") }
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue