修复报错
This commit is contained in:
parent
668fbe6611
commit
e56378d804
@ -129,6 +129,9 @@ function HeroEntity:setEquipAttrValue(name, value)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function HeroEntity:addEquipAttrValue(name, value)
|
function HeroEntity:addEquipAttrValue(name, value)
|
||||||
|
if self.equipAttr[name] == nil then
|
||||||
|
self.equipAttr[name] = 0
|
||||||
|
end
|
||||||
self.equipAttr[name] = self.equipAttr[name] + value
|
self.equipAttr[name] = self.equipAttr[name] + value
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user