Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ai_helper.robust_move_and_attack: return action result to calling fun…
…ction This function is supposed to be able to deal with all kinds of rare and weird events without throwing errors, but it should still return a status table describing what happened. The vast majority of situations will simply return the move_result tables. For all the strange stuff that could also happen due to WML events etc., we set up dummy tables with the same structure and (somewhat) descriptive error messages instead.
- Loading branch information
Showing
1 changed file
with
70 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The indentation here seems pretty weird - shouldn't lines 172-176 be indented another level?