[Commits] [wesnoth/wesnoth] 20a8a2: High XP attack CA: fix rare case of AI choosing wr...
GitHub
noreply at github.com
Fri Sep 23 15:32:51 UTC 2016
Branch: refs/heads/master
Home: https://github.com/wesnoth/wesnoth
Commit: 20a8a2f456642cd7c351976e1981ff098d228353
https://github.com/wesnoth/wesnoth/commit/20a8a2f456642cd7c351976e1981ff098d228353
Author: mattsc <mattsc000 at gmail.com>
Date: 2016-09-23 (Fri, 23 Sep 2016)
Changed paths:
M data/ai/lua/ca_high_xp_attack.lua
Log Message:
-----------
High XP attack CA: fix rare case of AI choosing wrong weapon
Because the attack simulation during CA evaluation is done with enemy
XP set to zero, the AI previously sometimes chose a different weapon
during execution than what was used for evaluation. This resulted, for
example, in archers sometimes attacking an enemy without ranged attacks
with their melee attack when aggression=1.
More information about the Commits
mailing list