Revert "Display amount healed as an integer in [heal_unit]"

This reverts commit 0294bd81b2.

Changing display is unnecessary when the healed amount itself is forced
to be an integer (next commit).

(cherry-picked from commit f2284e2e79)
This commit is contained in:
Jyrki Vesterinen 2018-04-16 20:54:20 +03:00
parent ef4d9f570d
commit 167ee61d34

View file

@ -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 = math.tointeger(heal_amount), color = {0, 255, 0}})
animator:add(u, 'healed', 'hit', {value = heal_amount, text = heal_amount, color = {0, 255, 0}})
end
if #healers > 0 then
animator:add(healers[1], 'healing', 'hit', {value = heal_amount})