|
|
@@ -179,6 +179,8 @@ function Listofrelics(human)
|
|
|
msgEntry.equipLimit = 0
|
|
|
end
|
|
|
if relicData and relicData.equipped and relicData.equipped[relicId] then
|
|
|
+ -- print("[GC_SACRED_RELIC_QUERY] 回复中的装备的遗物ID relicId = "..relicId)
|
|
|
+ -- table.print_lua_table(relicData.equipped)
|
|
|
msgEntry.heroIdx[0] = #relicData.equipped[relicId]
|
|
|
for idx, rid in ipairs(relicData.equipped[relicId]) do
|
|
|
msgEntry.heroIdx[idx] = rid
|
|
|
@@ -637,12 +639,16 @@ function WinnerRelic_CancelWinner(human, tHeroGrid, nHeroIndex)
|
|
|
return
|
|
|
end
|
|
|
|
|
|
- for _, v in ipairs(tRelicData.equipped[nRelicID]) do
|
|
|
+ for i, v in ipairs(tRelicData.equipped[nRelicID]) do
|
|
|
if v == nHeroIndex then
|
|
|
- table.remove(tRelicData.equipped[nRelicID], nHeroIndex)
|
|
|
+ table.remove(tRelicData.equipped[nRelicID], i)
|
|
|
+ --print("[WinnerRelic_CancelWinner] 移除了对应的英雄index nRelicID = "..nRelicID.." nHeroIndex = "..nHeroIndex.." i = "..i)
|
|
|
break
|
|
|
end
|
|
|
end
|
|
|
+
|
|
|
+ -- table.print_lua_table(tRelicData.equipped[nRelicID])
|
|
|
+ -- print("[WinnerRelic_CancelWinner]打印当前遗物装备数据")
|
|
|
end
|
|
|
|
|
|
function onLogin(human)
|