[Commits] [wesnoth/wesnoth] faeaf5: ai_helper.get_attacks: improve check for units in ...
GitHub
noreply at github.com
Sun Jun 15 21:22:46 UTC 2014
Branch: refs/heads/master
Home: https://github.com/wesnoth/wesnoth
Commit: faeaf5e47c2519e5f1307082ec3104b145ff952b
https://github.com/wesnoth/wesnoth/commit/faeaf5e47c2519e5f1307082ec3104b145ff952b
Author: mattsc <mattsc000 at gmail.com>
Date: 2014-06-15 (Sun, 15 Jun 2014)
Changed paths:
M data/ai/lua/ai_helper.lua
Log Message:
-----------
ai_helper.get_attacks: improve check for units in the way
Check whether the unit in the way has an unoccupied hex to move to.
Previously, it was only checked whether its reach was >1, which
sometimes can include only hexes occupied by units on its own side,
making the actual move impossible.
More information about the Commits
mailing list