ElEditors, Interface administrators, Administrators
70,782
edits
No edit summary |
No edit summary |
||
Line 395: | Line 395: | ||
for mode, mode_content in pairs(BASIC_DAMAGE) do | for mode, mode_content in pairs(BASIC_DAMAGE) do | ||
for damage_key, damage_value in pairs(mode_content) do | for damage_key, damage_value in pairs(mode_content) do | ||
local | local total_cancel_candidate = BASIC_DAMAGE[mode]['cancel_' .. damage_key] | ||
if string.find(damage_key, 'total_') and | if (string.find(damage_key, 'total_') or string.find(damage_key, 'avg_')) and total_cancel_candidate then | ||
BASIC_DAMAGE[mode][damage_key] = damage_value + | BASIC_DAMAGE[mode][damage_key] = damage_value + total_cancel_candidate | ||
end | end | ||
end | end |