选技能buf修复
This commit is contained in:
parent
dd3d4d812a
commit
8ad104e38d
@ -1546,6 +1546,7 @@ function BattleBaseController:setGridBreakCondition(gridMap, posId, condition)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function BattleBaseController:tryShowSelectSkillComp(needDelay, onlyCommonSkill)
|
function BattleBaseController:tryShowSelectSkillComp(needDelay, onlyCommonSkill)
|
||||||
|
self.canChoseSkillCount = 1
|
||||||
local skillList = self:getRandomSkillList(nil, onlyCommonSkill)
|
local skillList = self:getRandomSkillList(nil, onlyCommonSkill)
|
||||||
if needDelay then
|
if needDelay then
|
||||||
self.showSelectSkillSid = ModuleManager.BattleManager:performWithDelayGlobal(function()
|
self.showSelectSkillSid = ModuleManager.BattleManager:performWithDelayGlobal(function()
|
||||||
@ -2292,6 +2293,10 @@ function BattleBaseController:dealSelectSkill(skillId, value, side, isSnapshot)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function BattleBaseController:onSelectSkill(skillId, value, pos, side)
|
function BattleBaseController:onSelectSkill(skillId, value, pos, side)
|
||||||
|
if not self.canChoseSkillCount or self.canChoseSkillCount <= 0 then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
self.canChoseSkillCount = self.canChoseSkillCount - 1
|
||||||
side = side or self:getCurActionSide()
|
side = side or self:getCurActionSide()
|
||||||
self:dealSelectSkill(skillId, value, side)
|
self:dealSelectSkill(skillId, value, side)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user