ElEditors, Interface administrators, Administrators
70,981
edits
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 = inheritArg; | |||
if inheritArg and inheritArg[i] and inheritArg[i] ~= '' and | if inheritArg and inheritArg[i] and inheritArg[i] ~= '' and |