mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-06 23:44:19 +00:00
Merge pull request #792 from GregoryLundberg/GL_harm_unit
Fix bug: Lua harm_unit
This commit is contained in:
commit
83bd6cdfbf
@ -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")
|
||||
|
Loading…
x
Reference in New Issue
Block a user