[Commits] [wesnoth/wesnoth] 130389: ai_helper.get_attacks: improve check for units in ...
GitHub
noreply at github.com
Sun Jun 15 21:26:58 UTC 2014
Branch: refs/heads/1.12
Home: https://github.com/wesnoth/wesnoth
Commit: 130389acdf6f4b9331a12cfcd5a058e743fb94b7
https://github.com/wesnoth/wesnoth/commit/130389acdf6f4b9331a12cfcd5a058e743fb94b7
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