Anonymous

Module:Test: Difference between revisions

From Elwiki
62 bytes removed ,  10 October 2023
no edit summary
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] or args[inheritKey]


                     if not tonumber(inheritArg[i]) then
                     if inheritArg and inheritArg[i] and inheritArg[i] ~= '' and
                         inheritArg = args[prefix .. inheritKey] or args[inheritKey]
                         (damageTypeIndex == 1 and ix ~= 1 or damageTypeIndex ~= 1)
                     end
                     then
 
                    if inheritArg and inheritArg[i] then
                         mainArgValues[i] = applyInheritance(mainArgValues, inheritArg, mainArgValue, inheritArg[i])
                         mainArgValues[i] = applyInheritance(mainArgValues, inheritArg, mainArgValue, inheritArg[i])
                         break
                         break