This commit is contained in:
Charles Dang 2015-09-20 10:23:34 +11:00
parent 9ea9c88356
commit 45aa0d4ae8

View file

@ -15,7 +15,8 @@ function wml_actions.object(cfg)
local unit, command_type, text
if helper.get_child(cfg, "filter") then
local filter = helper.get_child(cfg, "filter")
if filter then
unit = wesnoth.get_units(filter)[1]
else
unit = wesnoth.get_unit(contxt.x, context.y)