mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-02 12:42:23 +00:00
Update [heal_unit] to use new animation API calls
This commit is contained in:
parent
0f01f97b30
commit
1a1a893a4c
@ -688,11 +688,12 @@ function wml_actions.heal_unit(cfg)
|
||||
end
|
||||
|
||||
if cfg.animate then
|
||||
-- TODO: Make this use the new animation API
|
||||
wesnoth.animate_unit{
|
||||
T.filter(healers),
|
||||
flag = "healing"
|
||||
}
|
||||
if #healers then
|
||||
local animator = wesnoth.create_animator()
|
||||
-- Need dummy 3rd argument here...
|
||||
animator:add(healers[1], 'healing', 'hits')
|
||||
animator:run()
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user