Update of bug #13317 (project wesnoth):

                  Status:               Confirmed => Wont Fix               

    _______________________________________________________

Follow-up Comment #3:

After an IRC developer discussion, it was decided that such behavior is a
wanted behavior, and should be preserved. But, to account for use cases where
it is needed to get a list of attacks without immediately evaluating them, an
easy workaround is suggested - wrap 'attacks' inside array ( [attacks] ). If
that doesn't work for you - say so, we'll try to do something that will work
in your use case.

Therefore, the documentation in the wiki was changed to account to actual
behavior:

'attacks'
NOTE: this variable returns a list of all possible attacks, which is
immediately treated as list of attack orders, which is evaluated (so,
evaluation of this variable results in attacks being made). If you want to
get the list without such evaluation, wrap it inside the array, "[attacks]".
If you want to get the first attack, wrap it inside the array twice,
"[[attacks[0]]" ] 

    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?13317>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs

Reply via email to