|
|
@@ -323,7 +323,7 @@ function makeHeroSimpleByGeneral(net, id)
|
|
|
end
|
|
|
end
|
|
|
|
|
|
-function makeHeroNice(net, id, cnt, isNew, index)
|
|
|
+function makeHeroNice(net, id, cnt, isNew, index, human)
|
|
|
net.itemData[0] = 0
|
|
|
net.heroSimple[0] = 0
|
|
|
net.heroStatic[0] = 0
|
|
|
@@ -337,6 +337,13 @@ function makeHeroNice(net, id, cnt, isNew, index)
|
|
|
net.heroSimple[0] = 1
|
|
|
makeHeroSimpleByID(net.heroSimple[1], id, index)
|
|
|
|
|
|
+ if human then
|
|
|
+ local skinbody = SkinLogic.getBodyByHeroId(human, id)
|
|
|
+ if skinbody then
|
|
|
+ net.heroSimple[1].body = skinbody
|
|
|
+ end
|
|
|
+ end
|
|
|
+
|
|
|
net.heroStatic[0] = 1
|
|
|
makeHeroStatic(net.heroStatic[1], id)
|
|
|
end
|