Commit ef07953382780eb486bd046708bff8780de6ad7f
1 parent
fb321075
fix equip
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
src/actions/HeroAction.lua
... | ... | @@ -515,7 +515,7 @@ function _M.referEquipsRpc(agent, data) |
515 | 515 | role:addEquip({type=typ,level=ownLv,count=1,isRefer=true}) |
516 | 516 | end |
517 | 517 | end |
518 | - hero:updateProperty({field = "equip", value = hero:getProperty("equip"):setv(typ, level)}) | |
518 | + hero:updateProperty({field = "equip", value = hero:getProperty("equip"):incrv(typ, level)}) | |
519 | 519 | end |
520 | 520 | SendPacket(actionCodes.Hero_referEquipsRpc, "") |
521 | 521 | return true |
... | ... | @@ -559,7 +559,7 @@ function _M.referRunesRpc(agent, data) |
559 | 559 | local ownRune = role.runeBag[uid] |
560 | 560 | ownRune:updateProperty({field = "refer",value = hero:getProperty("id")}) |
561 | 561 | end |
562 | - hero:updateProperty({field = "rune", value = hero:getProperty("equip"):setv(typ,uid)}) | |
562 | + hero:updateProperty({field = "rune", value = hero:getProperty("equip"):incrv(typ,uid)}) | |
563 | 563 | end |
564 | 564 | SendPacket(actionCodes.Hero_referRunesRpc, "") |
565 | 565 | return true | ... | ... |