diff --git a/lua/main.lua b/lua/main.lua index f4f9557c..34a47613 100644 --- a/lua/main.lua +++ b/lua/main.lua @@ -93,7 +93,7 @@ function wesnoth.wml_actions.harm_unit_loti(cfg) else return false end end - local this_unit = utils.scoped_var("this_unit") --luacheck: no unused args + local this_unit = utils.scoped_var("this_unit") --luacheck: no unused for index, unit_to_harm in ipairs(wesnoth.units.find_on_map(filter)) do if unit_to_harm.valid then @@ -202,7 +202,7 @@ function wesnoth.wml_actions.harm_unit_loti(cfg) wesnoth.units.to_map(unit_to_harm, unit_to_harm.x, unit_to_harm.y) if harmer then - local old_damage_inflicted = utils.scoped_var("damage_inflicted") --luacheck: no unused args + local old_damage_inflicted = utils.scoped_var("damage_inflicted") --luacheck: no unused wml.variables["damage_inflicted"] = damage wml.variables["harm_unit_trigger"] = true if cfg.fire_attacker_hits then