[Commits] [wesnoth/wesnoth] 25eb3d: Fast Micro AI: fix attack_filter when excluding le...
GitHub
noreply at github.com
Thu Oct 20 16:36:40 UTC 2016
Branch: refs/heads/master
Home: https://github.com/wesnoth/wesnoth
Commit: 25eb3dd20f722a7ef76fde18d61cd565cbbda819
https://github.com/wesnoth/wesnoth/commit/25eb3dd20f722a7ef76fde18d61cd565cbbda819
Author: mattsc <mattsc000 at gmail.com>
Date: 2016-10-20 (Thu, 20 Oct 2016)
Changed paths:
M data/ai/micro_ais/cas/ca_fast_attack_utils.lua
Log Message:
-----------
Fast Micro AI: fix attack_filter when excluding leader
“canrecruit = nil” does not give the same result as “canrecruit =
false” in a standard unit filter.
Commit: fef404fdb9128e43adfe9c2079b895b5c6f4f0cf
https://github.com/wesnoth/wesnoth/commit/fef404fdb9128e43adfe9c2079b895b5c6f4f0cf
Author: mattsc <mattsc000 at gmail.com>
Date: 2016-10-20 (Thu, 20 Oct 2016)
Changed paths:
M data/ai/micro_ais/cas/ca_fast_attack_utils.lua
M data/ai/micro_ais/cas/ca_fast_combat.lua
M data/ai/micro_ais/cas/ca_fast_combat_leader.lua
Log Message:
-----------
Fast Micro AI: simplify code by using new ai.aspect.attacks
Note that this requires that the enemy filter in the utils function now
matches the enemy units to be attacked, while previously it was set to
all enemy units NOT matching the filter. As this is not used anywhere
else, that’s not a problem, it’s just noted here for completeness.
Compare: https://github.com/wesnoth/wesnoth/compare/41672422a687...fef404fdb912
More information about the Commits
mailing list