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