Skip to content

Commit

Permalink
Fix luacheck once again
Browse files Browse the repository at this point in the history
  • Loading branch information
Dugy committed Jul 23, 2024
1 parent d4f187a commit b96ce6c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ function wesnoth.wml_actions.harm_unit_loti(cfg)
else return false end
end

local this_unit <close> = utils.scoped_var("this_unit") --luacheck: no unused args
local this_unit <close> = 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
Expand Down Expand Up @@ -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 <close> = utils.scoped_var("damage_inflicted") --luacheck: no unused args
local old_damage_inflicted <close> = 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
Expand Down

0 comments on commit b96ce6c

Please sign in to comment.