Fix deprecation warning in [kill]

Fixes #6924
This commit is contained in:
Celtic Minstrel 2022-07-29 23:37:18 -04:00
parent d0f9c6b8e3
commit 0f3d8388df

View file

@ -38,7 +38,7 @@ function wesnoth.wml_actions.kill(cfg)
end
end
if can_fire then
wesnoth.fire_event("last breath", death_loc, killer_loc)
wesnoth.game_events.fire("last breath", death_loc, killer_loc)
end
if cfg.animate and unit.valid == "map" then
wesnoth.interface.scroll_to_hex(death_loc, true)
@ -74,7 +74,7 @@ function wesnoth.wml_actions.kill(cfg)
-- wesnoth.wml_actions.redraw{}
if can_fire then
wesnoth.fire_event("die", death_loc, killer_loc)
wesnoth.game_events.fire("die", death_loc, killer_loc)
end
if cfg.fire_event then
if recursion <= 1 then