Merge branch 'dev' of git.juzugame.com:b6-client/b6-lua into dev
This commit is contained in:
commit
4a1fc3e0ab
@ -119,6 +119,7 @@ function BattleController:onDefDead(callback)
|
|||||||
if callback then
|
if callback then
|
||||||
callback()
|
callback()
|
||||||
end
|
end
|
||||||
|
self:handleBuffs(BattleConst.SIDE_DEF)
|
||||||
end)
|
end)
|
||||||
else
|
else
|
||||||
if callback then
|
if callback then
|
||||||
|
|||||||
@ -60,6 +60,7 @@ function BattleControllerStage:_stageGenerateNextMonster()
|
|||||||
local monsterComp = spineObject:addLuaComponent(GConst.BattleConst.TYPEOF_LUA_COMP.BATTLE_MONSTER_COMPONENT)
|
local monsterComp = spineObject:addLuaComponent(GConst.BattleConst.TYPEOF_LUA_COMP.BATTLE_MONSTER_COMPONENT)
|
||||||
monsterComp:initWithEntity(modelId, unitEntity, self)
|
monsterComp:initWithEntity(modelId, unitEntity, self)
|
||||||
self.defTeam:addUnit(monsterComp, true)
|
self.defTeam:addUnit(monsterComp, true)
|
||||||
|
self:handleBuffs(GConst.BattleConst.SIDE_DEF)
|
||||||
self.battleUI:refreshDefHp(unitEntity:getHp(), unitEntity:getHpPercent())
|
self.battleUI:refreshDefHp(unitEntity:getHp(), unitEntity:getHpPercent())
|
||||||
local bornTime = monsterComp:getAnimationDuration(GConst.BattleConst.SPINE_ANIMATION_NAME.BORN)
|
local bornTime = monsterComp:getAnimationDuration(GConst.BattleConst.SPINE_ANIMATION_NAME.BORN)
|
||||||
if isBoss then -- 如果是boss就跑过去
|
if isBoss then -- 如果是boss就跑过去
|
||||||
|
|||||||
@ -293,7 +293,7 @@ function BattleTeam:removeAllBuff()
|
|||||||
local count = #self.buffList
|
local count = #self.buffList
|
||||||
for i = count, 1, -1 do
|
for i = count, 1, -1 do
|
||||||
buffEffect = self.buffList[i]
|
buffEffect = self.buffList[i]
|
||||||
if buffEffect and not buffEffect.buff:isCantRemove() then
|
if buffEffect then
|
||||||
self:updateBuffState(buffEffect.buff, -1)
|
self:updateBuffState(buffEffect.buff, -1)
|
||||||
table.remove(self.buffList, i)
|
table.remove(self.buffList, i)
|
||||||
BattleBuffHandle.removeBuff(self.mainUnit, buffEffect)
|
BattleBuffHandle.removeBuff(self.mainUnit, buffEffect)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user