|
|
@@ -185,13 +185,14 @@ local function skinOff(human,heroIdx)
|
|
|
assert(skinIdx,"param error")
|
|
|
-- 对所有heroId相同的英雄操作
|
|
|
local heroIdxList = HeroLogic.getHeroListById(human,heroId)
|
|
|
+ local heroCfg = HeroExcel[heroId]
|
|
|
for _,idx in ipairs(heroIdxList) do
|
|
|
-- 脱下皮肤 并且还原默认身体 icon和head
|
|
|
human.db.heroBag[idx].skinOn = nil
|
|
|
- local defaultHead = RoleHeadLogic.getDefaultHead()
|
|
|
- RoleHeadLogic.setHead(human,defaultHead,RoleHeadLogic.HEAD_TYPE_1)
|
|
|
- RoleHeadLogic.setHead(human,0,RoleHeadLogic.HEAD_TYPE_3)
|
|
|
+ --local defaultHead = RoleHeadLogic.getDefaultHead(human)
|
|
|
+ RoleHeadLogic.setHead(human,heroCfg.head,RoleHeadLogic.HEAD_TYPE_1)
|
|
|
|
|
|
+ RoleHeadLogic.setHead(human,heroCfg.body,RoleHeadLogic.HEAD_TYPE_3)
|
|
|
end
|
|
|
|
|
|
-- 回复给客户端
|