Follow-up Comment #5, bug #19142 (project wesnoth):
I suggest using code in ai/actions.?pp to check if the attack is
possible/valid (via execute_recruit_action with execute set to false, which
does a lot of checks, which can be seen in attack_result::do_check_before() )
Alternatively, just pick a list of checks from there.
Note that you might want to modify the code slightly, because
E_NO_ATTACKS_LEFT is not important for out-of-turn planning.
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?19142>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs