|
|
@@ -120,7 +120,6 @@ function initAfterHot()
|
|
|
end
|
|
|
|
|
|
function query(human,combatType,heroID)
|
|
|
- -- print("请求羁绊英雄数据================", combatType, heroID)
|
|
|
local flag = RoleSystemLogic.isOpen(human,RoleSystemDefine.ROLE_SYS_ID_207)
|
|
|
if flag ~= true then
|
|
|
return
|
|
|
@@ -167,9 +166,6 @@ function query(human,combatType,heroID)
|
|
|
HeroGrid.makeHeroSimple(net.hero, heroGrid, index)
|
|
|
end
|
|
|
msgRet.posList[0] = len
|
|
|
-
|
|
|
-
|
|
|
- -- print("请求羁绊英雄数据结束================", msgRet.jibanList[0], msgRet.posList[0])
|
|
|
Msg.send(msgRet,human.fd)
|
|
|
end
|
|
|
|
|
|
@@ -254,7 +250,6 @@ function getJiban(objList,jibanList)
|
|
|
local obj = objList[i]
|
|
|
-- 不是玩家不计算羁绊
|
|
|
if obj and obj.type == CombatDefine.COMBAT_OBJ_TYPE1 then
|
|
|
- -- print("上阵英雄ID================", obj.id)
|
|
|
objHero[obj.id] = objHero[obj.id] or 0
|
|
|
objHero[obj.id] = objHero[obj.id] + 1
|
|
|
end
|
|
|
@@ -323,7 +318,6 @@ end
|
|
|
|
|
|
function getJibanHero(human,combatHeroDB)
|
|
|
local jibanHero = {}
|
|
|
- -- print("开始获取羁绊英雄数据================", human.db.name, combatHeroDB.jiban and true or false)
|
|
|
if combatHeroDB.jiban then
|
|
|
-- for k, uuid in pairs(combatHeroDB.jiban) do
|
|
|
-- if uuid ~= "0" and uuid ~= "" then
|
|
|
@@ -340,7 +334,6 @@ function getJibanHero(human,combatHeroDB)
|
|
|
-- end
|
|
|
|
|
|
for k, uuid in pairs(combatHeroDB.jiban) do
|
|
|
- -- print(string.format("===========羁绊英雄数据, 位置: %s, 英雄UUID: %s", k, uuid))
|
|
|
if uuid ~= "0" and uuid ~= "" then
|
|
|
local heroGrid = HeroLogic.getHeroGridByUuid(human, uuid)
|
|
|
if heroGrid then
|
|
|
@@ -367,10 +360,6 @@ function getJibanHero(human,combatHeroDB)
|
|
|
end
|
|
|
end
|
|
|
end
|
|
|
-
|
|
|
- -- for k in pairs(jibanHero) do
|
|
|
- -- print("筛选出的羁绊英雄================", k)
|
|
|
- -- end
|
|
|
end
|
|
|
return jibanHero
|
|
|
end
|
|
|
@@ -444,7 +433,6 @@ function setBeSkill(objList,jiban)
|
|
|
end
|
|
|
|
|
|
function update(human,combatType,jibanListStr)
|
|
|
- -- print("更新羁绊英雄数据================", combatType,jibanListStr)
|
|
|
local conf = CombatExcel.combat[combatType]
|
|
|
if not conf then return end
|
|
|
|