ElEditors, Interface administrators, Administrators
70,868
edits
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] | ||
if | if not tonumber(inheritArg[i]) then | ||
inheritArg = args[prefix .. inheritKey] or args[inheritKey] | |||
end | |||
if inheritArg and inheritArg[i] and | |||
(damageTypeIndex == 1 and ix ~= 1 or damageTypeIndex ~= 1) | (damageTypeIndex == 1 and ix ~= 1 or damageTypeIndex ~= 1) | ||
then | then |