Module:Test: Difference between revisions
From Elwiki
No edit summary |
No edit summary |
||
Line 294: | Line 294: | ||
for ix, inheritKey in ipairs(argTable) do | for ix, inheritKey in ipairs(argTable) do | ||
local inheritArg = args[prefix .. inheritKey .. damageType] or args[inheritKey .. damageType] | local inheritArg = (args[prefix .. inheritKey .. damageType] or args[inheritKey .. damageType]) or (args[prefix .. inheritKey] or args[inheritKey]) | ||
if inheritArg and inheritArg[i] and inheritArg[i] ~= | if inheritArg and inheritArg[i] and type(inheritArg[i]) ~= "string" and ix ~= 1 then | ||
mainArgValues[i] = applyInheritance(mainArgValues, inheritArg, mainArgValue, inheritArg[i]) | mainArgValues[i] = applyInheritance(mainArgValues, inheritArg, mainArgValue, inheritArg[i]) | ||
break | break |