|
|
@@ -12,6 +12,7 @@ local Broadcast = require("broadcast.Broadcast")
|
|
|
local HeroLogic = require("hero.HeroLogic")
|
|
|
local Util = require("common.Util")
|
|
|
local HeroGrowUp = require("absAct.HeroGrowUp")
|
|
|
+local ObjHuman = require("core.ObjHuman")
|
|
|
|
|
|
-- 取出合适的装备
|
|
|
local function getEquipGrid(human, bagIndex, heroUuid, pos)
|
|
|
@@ -252,4 +253,12 @@ function randomSave(human, bagIndex, heroUuid, pos)
|
|
|
|
|
|
Broadcast.sendErr(human, Lang.EQUIP_WASH_SAVE_SUC)
|
|
|
randomQuery(human, bagIndex, heroUuid, pos)
|
|
|
+
|
|
|
+ --刷新属性
|
|
|
+ local heroGrid, heroIndex = HeroLogic.getHeroGridByUuid(human, heroUuid)
|
|
|
+ if not heroGrid or not heroIndex or not heroGrid.id then
|
|
|
+ return Broadcast.sendErr(human, Lang.DRILL_CHOOSE_FRIEND_ERR_INFO)
|
|
|
+ end
|
|
|
+ ObjHuman.doCalcHero(human, heroIndex)
|
|
|
+ HeroLogic.sendHeroBagDynamic(human, heroGrid.id, heroIndex)
|
|
|
end
|