mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-26 16:23:17 +00:00

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.