diff --git a/data/scripts/actions/others/clay_lump.lua b/data/scripts/actions/others/clay_lump.lua index 29110f3650..d4f293c563 100644 --- a/data/scripts/actions/others/clay_lump.lua +++ b/data/scripts/actions/others/clay_lump.lua @@ -8,9 +8,9 @@ local config = { local clayLump = Action() function clayLump.onUse(player, item, fromPosition, target, toPosition, isHotkey) - local random, tmpItem = math.random(0, 10000) * 0.01 + local random = math.random(0, 10000) * 0.01 for i = 1, #config do - tmpItem = config[i] + local tmpItem = config[i] if random >= tmpItem.chance[1] and random < tmpItem.chance[2] then item:getPosition():sendMagicEffect(CONST_ME_POFF)