Skip to content

Commit

Permalink
[heal_unit]: clear the animation after playing it (#3526)
Browse files Browse the repository at this point in the history
Fixes another case of unit halo remaining after death.

(cherry-picked from commit 3541629)
  • Loading branch information
newfrenchy83 authored and jyrkive committed Oct 7, 2018
1 parent ee3e842 commit 98bec00
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions data/lua/wml/heal_unit.lua
Expand Up @@ -44,6 +44,7 @@ function wesnoth.wml_actions.heal_unit(cfg)
animator:add(healers[1], 'healing', 'hit', {value = heal_amount})
end
animator:run()
animator:clear()
end

u.hitpoints = new_hitpoints
Expand Down

0 comments on commit 98bec00

Please sign in to comment.