fix bug
This commit is contained in:
parent
f4e02995ad
commit
37237493aa
@ -115,7 +115,7 @@ function TalentData:_updateAllAttr()
|
|||||||
local lv = self:getLevels(id)
|
local lv = self:getLevels(id)
|
||||||
if lv and lv > 0 and cfg.attr then
|
if lv and lv > 0 and cfg.attr then
|
||||||
for _, v in ipairs(cfg.attr) do
|
for _, v in ipairs(cfg.attr) do
|
||||||
self.allAttr[v.type] = (self.allAttr[v.type] or 0) + v.num
|
self.allAttr[v.type] = (self.allAttr[v.type] or 0) + v.num * lv
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user