Merge branch 'dev' of git.juzugame.com:b6-client/b6-lua into dev

This commit is contained in:
chenxi 2023-05-30 14:30:05 +08:00
commit 2f720561f5
3 changed files with 12 additions and 12 deletions

View File

@ -511,9 +511,6 @@ function BattleController:enterNextWave()
self.eliminateCount = 0
self.isBossWave = self.defTeam:getMainUnit().unitEntity:getIsBoss()
if self.isBossWave then
self:showBuffTips(BattleConst.SIDE_DEF, true)
end
self:postFightStart()
self:enterRoundBegin()
end

View File

@ -2046,6 +2046,7 @@ function BattleUI:showBossEnterAni(bornTime, bossName, monsterComp, callback)
if callback then
callback()
end
self.battleController:showBuffTips(GConst.BattleConst.SIDE_DEF, true)
return
end
self.bossEnterNode:setVisible(true)
@ -2066,6 +2067,7 @@ function BattleUI:showBossEnterAni(bornTime, bossName, monsterComp, callback)
if callback then
callback()
end
self.battleController:showBuffTips(GConst.BattleConst.SIDE_DEF, true)
end)
self.bossEnterAniSeq:AppendInterval(bornTime)
self.bossEnterAniSeq:AppendCallback(function()

View File

@ -32,15 +32,16 @@ function BattleBuffEntity:getHostSkill()
end
function BattleBuffEntity:getDesc()
if self.desc == nil then
local buff18NInfo = I18N:getConfigWithOtherKey("buff", "name")[self.name]
if buff18NInfo then
self.desc = buff18NInfo.desc or GConst.EMPTY_STRING
else
self.desc = GConst.EMPTY_STRING
end
end
return self.desc
return GFunc.getBuffDesc(self:getName(), self:getEffectNum())
-- if self.desc == nil then
-- local buff18NInfo = I18N:getConfigWithOtherKey("buff", "name")[self.name]
-- if buff18NInfo then
-- self.desc = buff18NInfo.desc or GConst.EMPTY_STRING
-- else
-- self.desc = GConst.EMPTY_STRING
-- end
-- end
-- return self.desc
end
function BattleBuffEntity:getBuffType()