一些报错修复

This commit is contained in:
xiekaidong 2023-07-24 18:32:41 +08:00
parent 98dafc1c05
commit 0e2bb42a25
3 changed files with 6 additions and 1 deletions

View File

@ -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

View File

@ -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

View File

@ -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"]