Fix bug: Lua harm_unit

Missing local T.

cf https://forums.wesnoth.org/viewtopic.php?f=21&t=44567
This commit is contained in:
Gregory A Lundberg 2016-09-19 17:40:41 -05:00
parent 60a6519295
commit 3809a69a42

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")