Fix [heal_unit] attempting to animate even if filter didn't match a unit
This commit is contained in:
parent
a9ba9a9fea
commit
701649a75e
1 changed files with 1 additions and 1 deletions
|
@ -688,7 +688,7 @@ function wml_actions.heal_unit(cfg)
|
||||||
end
|
end
|
||||||
|
|
||||||
if cfg.animate then
|
if cfg.animate then
|
||||||
if #healers then
|
if #healers > 0 then
|
||||||
local animator = wesnoth.create_animator()
|
local animator = wesnoth.create_animator()
|
||||||
-- Need dummy 3rd argument here...
|
-- Need dummy 3rd argument here...
|
||||||
animator:add(healers[1], 'healing', 'hits')
|
animator:add(healers[1], 'healing', 'hits')
|
||||||
|
|
Loading…
Add table
Reference in a new issue