处理神将归元 无尽和大闹天宫一级上阵问题 神将置换大闹天宫编队没血量问题
parent
c981f24ed0
commit
946aaa36ea
|
@ -109,6 +109,7 @@ function this:BindEvent()
|
|||
|
||||
for i = 1, #msg.drop.Hero do
|
||||
HeroManager.UpdateHeroDatas(msg.drop.Hero[i])
|
||||
ExpeditionManager.InitHeroHpValue(msg.drop.Hero[i].id)
|
||||
end
|
||||
curSelectHero = HeroManager.GetSingleHeroData(msg.drop.Hero[1].id)
|
||||
this.ShowCurrPosHeroReplace(curIndex)
|
||||
|
|
|
@ -432,6 +432,22 @@ function this.AllFormationDeleCurHeroId(heroDid)
|
|||
end
|
||||
end
|
||||
end
|
||||
-- 归元时检测无尽 和 大闹天宫阵容是否需要下阵
|
||||
function this.ResolvDownBattleCurHeroId(heroDid)
|
||||
for i, team in pairs(this.formationList) do
|
||||
local removeIndex
|
||||
if i == FormationTypeDef.EXPEDITION or i == FormationTypeDef.FORMATION_ENDLESS_MAP then
|
||||
for j = 1, #team.teamHeroInfos do
|
||||
if team.teamHeroInfos[j] and team.teamHeroInfos[j].heroId == heroDid then
|
||||
removeIndex = j
|
||||
end
|
||||
end
|
||||
if removeIndex then
|
||||
table.remove( team.teamHeroInfos, removeIndex)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
-- 获取当前光环的加成数据 type 编队类型
|
||||
function this.GetCurFormationElementAdd(teamHeroInfos)
|
||||
|
|
|
@ -147,6 +147,9 @@ function this.GetCurBoss()
|
|||
return curBoss
|
||||
end
|
||||
function this.GetBlood()
|
||||
if blood < 0 then
|
||||
blood = 10000
|
||||
end
|
||||
return blood
|
||||
end
|
||||
function this.GetCanSweep()
|
||||
|
|
|
@ -2910,6 +2910,7 @@ function this.ResetHero(dynamicloadId)
|
|||
heroDatas[dynamicloadId].lv = 1
|
||||
heroDatas[dynamicloadId].breakId = 0
|
||||
end
|
||||
FormationManager.ResolvDownBattleCurHeroId(dynamicloadId)
|
||||
end
|
||||
--神将合成
|
||||
function this.ByCompoundHeroGetAllHeros()
|
||||
|
|
Loading…
Reference in New Issue