URL:
  <http://gna.org/bugs/?25578>

                 Summary: [heal_unit] lua error
                 Project: Battle for Wesnoth
            Submitted by: sigurdfdragon
            Submitted on: Wed 08 Mar 2017 08:01:59 PM UTC
                Category: Bug
                Severity: 5 - Blocker
                Priority: 5 - Normal
              Item Group: WML
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 1.13.6+dev
        Operating System: Win 7 x64

    _______________________________________________________

Details:

Using the following in wml to heal a unit (triggered from a set_menu_item,
without any healers involved)
[heal_unit]
 amount=full
 moves=full
[/heal_unit]

Produces the following error:
20170308 14:30:56 error scripting/lua: lua/helper.lua:46: Expected a table or
wml object but got string
stack traceback:
        [C]: in function '.error'
        lua/helper.lua:46: in upvalue 'ensure_config'
        lua/helper.lua:55: in field 'get_child'
        lua/wml-tags.lua:636: in local 'cmd'
        lua/wml-utils.lua:145: in field 'handle_event_commands'
        lua/wml-flow.lua:6: in function <lua/wml-flow.lua:5>


Can be reproduced by launching SotA 10_Merfolk_Revenge and killing the enemy
leader (code is at line 321)

It seems likely this was introduced in:
https://github.com/wesnoth/wesnoth/commit/8822dacd92ebf290308b7deb351ac133af819a4a





    _______________________________________________________

Reply to this item at:

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

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


_______________________________________________
Wesnoth-bugs mailing list
Wesnoth-bugs@gna.org
https://mail.gna.org/listinfo/wesnoth-bugs

Reply via email to