Update [heal_unit] to use new animation API calls
This commit is contained in:
parent
0f01f97b30
commit
1a1a893a4c
1 changed files with 6 additions and 5 deletions
|
@ -688,11 +688,12 @@ function wml_actions.heal_unit(cfg)
|
||||||
end
|
end
|
||||||
|
|
||||||
if cfg.animate then
|
if cfg.animate then
|
||||||
-- TODO: Make this use the new animation API
|
if #healers then
|
||||||
wesnoth.animate_unit{
|
local animator = wesnoth.create_animator()
|
||||||
T.filter(healers),
|
-- Need dummy 3rd argument here...
|
||||||
flag = "healing"
|
animator:add(healers[1], 'healing', 'hits')
|
||||||
}
|
animator:run()
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue