Copy e_heal, e_dmg and e_lvl to r_connect_shadow and __add

This commit is contained in:
Flamanis
2022-12-18 14:12:54 -06:00
parent 55f2159119
commit 6c0f406681
2 changed files with 28 additions and 0 deletions
+14
View File
@@ -2744,6 +2744,13 @@ end
end
end
elseif(key == "e_heal" or key == "e_lvl") then
if (not habilidade_shadow[key]) then
habilidade_shadow[key] = {}
end
for empowermentLevel, empowermentValue in pairs(habilidade[key]) do
habilidade_shadow[key][empowermentLevel] = empowermentValue
end
end
end
@@ -2852,6 +2859,13 @@ atributo_heal.__add = function(tabela1, tabela2)
habilidade_tabela1 [key] = habilidade_tabela1 [key] + value
end
end
elseif(key == "e_heal" or key == "e_lvl") then
if (not habilidade_tabela1[key]) then
habilidade_tabela1[key] = {}
end
for empowermentLevel, empowermentValue in pairs(habilidade[key]) do
habilidade_tabela1[key][empowermentLevel] = habilidade_tabela1[key][empowermentValue] or 0 + empowermentValue
end
end
end
end