From 701649a75e2e2db0b2bf6dcce5de2bbed4de273f Mon Sep 17 00:00:00 2001 From: Celtic Minstrel Date: Sun, 26 Mar 2017 00:15:38 -0400 Subject: [PATCH] Fix [heal_unit] attempting to animate even if filter didn't match a unit --- data/lua/wml-tags.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/lua/wml-tags.lua b/data/lua/wml-tags.lua index 3f9458beb49..607ee207672 100644 --- a/data/lua/wml-tags.lua +++ b/data/lua/wml-tags.lua @@ -688,7 +688,7 @@ function wml_actions.heal_unit(cfg) end if cfg.animate then - if #healers then + if #healers > 0 then local animator = wesnoth.create_animator() -- Need dummy 3rd argument here... animator:add(healers[1], 'healing', 'hits')