bug修复
This commit is contained in:
parent
7b858220aa
commit
13e752a761
@ -336,11 +336,13 @@ local function _takeAddSkillEnergy(atkUnitComp, skillEntity, battleController)
|
|||||||
local boardSkills
|
local boardSkills
|
||||||
local count = 0
|
local count = 0
|
||||||
for eType, entity in pairs(battleController.battleData:getSkillEntities()) do
|
for eType, entity in pairs(battleController.battleData:getSkillEntities()) do
|
||||||
if not boardSkills then
|
if entity:getUnlocked() then
|
||||||
boardSkills = {}
|
if not boardSkills then
|
||||||
|
boardSkills = {}
|
||||||
|
end
|
||||||
|
table.insert(boardSkills, eType)
|
||||||
|
count = count + 1
|
||||||
end
|
end
|
||||||
table.insert(boardSkills, eType)
|
|
||||||
count = count + 1
|
|
||||||
end
|
end
|
||||||
if count <= 0 then
|
if count <= 0 then
|
||||||
return
|
return
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user