[Commits] [wesnoth/wesnoth] 3b2077: Fast Micro AI ai_helper functions: fix rarely occu...

GitHub noreply at github.com
Thu Nov 9 06:34:02 UTC 2017


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 3b2077fdc3a2edb05028f33b4951aeca8c931aa7
      https://github.com/wesnoth/wesnoth/commit/3b2077fdc3a2edb05028f33b4951aeca8c931aa7
  Author: mattsc <mattsc000 at gmail.com>
  Date:   2017-11-08 (Wed, 08 Nov 2017)

  Changed paths:
    M data/ai/lua/ai_helper.lua

  Log Message:
  -----------
  Fast Micro AI ai_helper functions: fix rarely occurring bug

When the AI moves a unit out of the way for another unit’s move, it is
occasionally possible for the former unit to use up all its movement
points (e.g. if it has few MP or on narrow crowded maps). If that unit
is on the list to be moved later during the same sequence, this caused
ai_helper.robust_move_and_attack() to return nil, which then made the
Fast Micro AI produce an error message.





More information about the Commits mailing list