一些报错修复
This commit is contained in:
parent
98dafc1c05
commit
0e2bb42a25
@ -1230,6 +1230,10 @@ function BattleUnitComp:enterNormalAttackState()
|
||||
self.attackTime = 0
|
||||
self.skillSlowDownTime = nil
|
||||
local skill = self.unitEntity:getNormalSkill(true)
|
||||
if not skill then
|
||||
self:onAttackOver()
|
||||
return
|
||||
end
|
||||
skill:startUse()
|
||||
if skill:getMoveType() == BattleConst.SKILL_MOVE_TYPE.MOVE then
|
||||
self.isMove = true
|
||||
|
||||
@ -515,7 +515,7 @@ end
|
||||
|
||||
function BattleBaseUI:showBuffTips(buffList, autoClose)
|
||||
if #buffList <= 0 then
|
||||
return
|
||||
return 0
|
||||
end
|
||||
self.battleBuffTipsRoot:setLocalScale(1, 1, 1)
|
||||
local buffObj = nil
|
||||
|
||||
@ -3,6 +3,7 @@ local GROW_CELL = "app/ui/shop/cell/grow_cell"
|
||||
local BASE_CELL_HEIGHT = 320
|
||||
|
||||
function GrowSellCell:init()
|
||||
self.actGifts = {}
|
||||
local uiMap = self.baseObject:genAllChildren()
|
||||
self.scrollRectObj = uiMap["grow_sell_cell.scroll_rect"]
|
||||
self.contentObj = uiMap["grow_sell_cell.scroll_rect.viewport.content"]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user