删除代码

This commit is contained in:
xiekaidong 2023-04-20 21:28:42 +08:00
parent 44102b81b9
commit e34b3df0aa

View File

@ -1270,7 +1270,6 @@ function BattleController:getRandomSkillList(getCount)
end
for elementType, list in pairs(skillPool) do
Logger.logHighlight(self.battleData:isUnlockedSkillElementType(elementType))
if self.battleData:isUnlockedSkillElementType(elementType) then
for _, skillId in ipairs(list) do
local skillCfg = cfg[skillId]
@ -1298,8 +1297,6 @@ function BattleController:getRandomSkillList(getCount)
end
end
Logger.printTable(newSkillPool)
if count > 0 then
local index = GFunc.getRandomIndex(skillWeight)
local skillId = table.remove(newSkillPool, index)