bug修复

This commit is contained in:
xiekaidong 2023-05-29 19:25:25 +08:00
parent 7b858220aa
commit 13e752a761

View File

@ -336,12 +336,14 @@ 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 entity:getUnlocked() then
if not boardSkills then if not boardSkills then
boardSkills = {} boardSkills = {}
end end
table.insert(boardSkills, eType) table.insert(boardSkills, eType)
count = count + 1 count = count + 1
end end
end
if count <= 0 then if count <= 0 then
return return
end end