Merge pull request #792 from GregoryLundberg/GL_harm_unit

Fix bug: Lua harm_unit
This commit is contained in:
Celtic Minstrel 2016-09-19 19:41:53 -04:00 committed by GitHub
commit 83bd6cdfbf

View file

@ -1,6 +1,7 @@
local helper = wesnoth.require "lua/helper.lua"
local utils = wesnoth.require "lua/wml-utils.lua"
local wml_actions = wesnoth.wml_actions
local T = helper.set_wml_tag_metatable {}
function wml_actions.harm_unit(cfg)
local filter = helper.get_child(cfg, "filter") or helper.wml_error("[harm_unit] missing required [filter] tag")