ElEditors, Interface administrators, Administrators
70,975
edits
No edit summary Tag: Reverted |
No edit summary Tag: Reverted |
||
Line 294: | Line 294: | ||
for ix, inheritKey in ipairs(argTable) do | for ix, inheritKey in ipairs(argTable) do | ||
local inheritArg = | local inheritArg = args[prefix .. inheritKey .. damageType] or args[inheritKey .. damageType] or args[prefix .. inheritKey] or args[inheritKey] | ||
if not tonumber(inheritArg[i]) then | if not tonumber(inheritArg[i]) then | ||
inheritArg = | inheritArg = args[prefix .. inheritKey] or args[inheritKey] | ||
end | end | ||
if inheritArg and inheritArg[i] and inheritArg[i] ~= '' and | if inheritArg and inheritArg[i] and inheritArg[i] ~= '' and | ||
tonumber(inheritArg[i]) | |||
then | then | ||
mainArgValues[i] = applyInheritance(mainArgValues, inheritArg, mainArgValue, inheritArg[i]) | mainArgValues[i] = applyInheritance(mainArgValues, inheritArg, mainArgValue, inheritArg[i]) |