恭送英雄宝物修改提交

dev_chengFeng
jiaoyangna 2020-08-24 16:08:03 +08:00
parent 6e5cb7d922
commit f05c6094b5
1 changed files with 8 additions and 3 deletions

View File

@ -390,8 +390,13 @@ function this.DeleteHeroDatas(heroDIds)
--清除英雄装备上挂载的英雄id
local equips = heroDatas[heroDIds[i]].equipIdList
if equips and LengthOfTable(equips) > 0 then
for i = 1, LengthOfTable(equips) do
EquipManager.DeleteSingleEquip(equips[i], heroDIds[i])
for j = 1, LengthOfTable(equips) do
EquipManager.DeleteSingleEquip(equips[j], heroDIds[i])
end
end
if (heroDatas[heroDIds[i]].jewels and #heroDatas[heroDIds[i]].jewels > 0) then
for j = 1, #heroDatas[heroDIds[i]].jewels do
EquipTreasureManager.SetTreasureUpOrDown(heroDatas[heroDIds[i]].jewels[j], "")
end
end
@ -404,7 +409,7 @@ function this.DeleteHeroDatas(heroDIds)
-- end
-- end
--end
--
--清楚编队上的英雄
FormationManager.AllFormationDeleCurHeroId(heroDIds[i])
--清除英雄魂印上挂载的英雄did