[Commits] [wesnoth/wesnoth] fcbb72: Fix bug [role] missing role=

GitHub noreply at github.com
Wed Aug 31 18:23:06 UTC 2016


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: fcbb72d8d06cc4c7b162af4eabcd88725d43367e
      https://github.com/wesnoth/wesnoth/commit/fcbb72d8d06cc4c7b162af4eabcd88725d43367e
  Author: Gregory A Lundberg <gregory_lundberg at gmx.com>
  Date:   2016-08-31 (Wed, 31 Aug 2016)

  Changed paths:
    M data/lua/wml-tags.lua

  Log Message:
  -----------
  Fix bug [role] missing role=

Missing role for [role] caused runtime errors. Do NOT report an error on this; using an empty string is intentional. It allows type-prioritized recalls!

"I want to recall the two highest-level bowmen and, if needed, will recruit them. They don't have a role, and won't need one later."
   [repeat]
      times=2
      [do]
          [role]
              search_recall_list=only
              type=Master Bowman,Longbowman,Bowman
              [auto_recall][/auto_recall]
              [else]
                  [unit]
                      placement=leader
                      side=1
                      type=Bowman
                  [/unit]
              [/else]
          [/role]
      [/do]
  [/repeat]


  Commit: a7bb98a4c819b70ec298b735767721489a733750
      https://github.com/wesnoth/wesnoth/commit/a7bb98a4c819b70ec298b735767721489a733750
  Author: Charles Dang <exodia339 at gmail.com>
  Date:   2016-09-01 (Thu, 01 Sep 2016)

  Changed paths:
    M data/lua/wml-tags.lua

  Log Message:
  -----------
  Merge pull request #761 from GregoryLundberg/GL_role_missing_role

Fix bug [role] missing role=


Compare: https://github.com/wesnoth/wesnoth/compare/0c945f87ab01...a7bb98a4c819


More information about the Commits mailing list