Module:Test: Difference between revisions

no edit summary
No edit summary
Tag: Reverted
No edit summary
Tag: Reverted
Line 297: Line 297:


                 for ix, inheritKey in ipairs(argTable) do
                 for ix, inheritKey in ipairs(argTable) do
                     local inheritArg = args[prefix .. inheritKey] or args[inheritKey]
                     local inheritArg = (inheritKey .. damageType) ~= mainKey and (args[prefix .. inheritKey .. damageType] or args[inheritKey .. damageType]) or (args[prefix .. inheritKey] or args[inheritKey])
                    local inheritKeyPrefixed = args[prefix .. inheritKey] and prefix .. inheritKey or args[inheritKey] and inheritKey;
                    local inheritKeyPrefixed = inheritArg;


                     if inheritArg and inheritArg[i] and inheritArg[i] ~= '' and
                     if inheritArg and inheritArg[i] and inheritArg[i] ~= '' and