Merge branch 'dev' of http://git.juzugame.com/b6-client/b6-lua into dev
This commit is contained in:
commit
06d96cefd4
@ -52,6 +52,10 @@ function BattleUnitComp:getIsBoss()
|
|||||||
return self.unitEntity:getIsBoss()
|
return self.unitEntity:getIsBoss()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function BattleUnitComp:getIsLimit()
|
||||||
|
return self.unitEntity:getIsLimit()
|
||||||
|
end
|
||||||
|
|
||||||
function BattleUnitComp:setTeam(team)
|
function BattleUnitComp:setTeam(team)
|
||||||
self.team = team
|
self.team = team
|
||||||
end
|
end
|
||||||
|
|||||||
@ -53,6 +53,9 @@ function BattleTeam:useNormalSkill(matchType, count, callback)
|
|||||||
end
|
end
|
||||||
if unit == nil then
|
if unit == nil then
|
||||||
return callback()
|
return callback()
|
||||||
|
end
|
||||||
|
if unit:getIsLimit() then
|
||||||
|
return callback()
|
||||||
end
|
end
|
||||||
self.mainUnit = unit
|
self.mainUnit = unit
|
||||||
self.battleController:setIsPauseHpProgress(true)
|
self.battleController:setIsPauseHpProgress(true)
|
||||||
@ -70,6 +73,9 @@ function BattleTeam:useSkill(matchType, count, callback)
|
|||||||
end
|
end
|
||||||
if unit == nil then
|
if unit == nil then
|
||||||
return callback()
|
return callback()
|
||||||
|
end
|
||||||
|
if unit:getIsLimit() then
|
||||||
|
return callback()
|
||||||
end
|
end
|
||||||
self.mainUnit = unit
|
self.mainUnit = unit
|
||||||
self.battleController:setIsPauseHpProgress(true)
|
self.battleController:setIsPauseHpProgress(true)
|
||||||
@ -79,6 +85,12 @@ function BattleTeam:useSkill(matchType, count, callback)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function BattleTeam:useAssistingSkill(assistingList, callback)
|
function BattleTeam:useAssistingSkill(assistingList, callback)
|
||||||
|
if self.mainUnit == nil then
|
||||||
|
return callback()
|
||||||
|
end
|
||||||
|
if self.mainUnit:getIsLimit() then
|
||||||
|
return callback()
|
||||||
|
end
|
||||||
local count = #assistingList
|
local count = #assistingList
|
||||||
if count <= 0 then
|
if count <= 0 then
|
||||||
return callback()
|
return callback()
|
||||||
@ -103,6 +115,12 @@ function BattleTeam:useAssistingSkill(assistingList, callback)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function BattleTeam:mainUnitUseAllSkills(callback)
|
function BattleTeam:mainUnitUseAllSkills(callback)
|
||||||
|
if self.mainUnit == nil then
|
||||||
|
return callback()
|
||||||
|
end
|
||||||
|
if self.mainUnit:getIsLimit() then
|
||||||
|
return callback()
|
||||||
|
end
|
||||||
self.battleController:setIsPauseHpProgress(true)
|
self.battleController:setIsPauseHpProgress(true)
|
||||||
self.mainUnit:beforeAttack()
|
self.mainUnit:beforeAttack()
|
||||||
self.mainUnit:resetBeforeAttack()
|
self.mainUnit:resetBeforeAttack()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user