Display amount healed as an integer in [heal_unit]
(cherry-picked from commit 0294bd81b2
)
This commit is contained in:
parent
c6f10ad794
commit
017c3ca9cf
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@ function wesnoth.wml_actions.heal_unit(cfg)
|
|||
if cfg.animate then
|
||||
local animator = wesnoth.create_animator()
|
||||
if heal_amount > 0 then
|
||||
animator:add(u, 'healed', 'hit', {value = heal_amount, text = heal_amount, color = {0, 255, 0}})
|
||||
animator:add(u, 'healed', 'hit', {value = heal_amount, text = math.tointeger(heal_amount), color = {0, 255, 0}})
|
||||
end
|
||||
if #healers > 0 then
|
||||
animator:add(healers[1], 'healing', 'hit', {value = heal_amount})
|
||||
|
|
Loading…
Add table
Reference in a new issue