bug修复

This commit is contained in:
xiekaidong 2023-06-20 17:50:33 +08:00
parent d9a6ccc527
commit d46fdec70a
2 changed files with 4 additions and 4 deletions

View File

@ -393,11 +393,11 @@ if NOT_PUBLISH then
if DataManager.BattleData.gridEntities then
local map = {}
for posId, entity in pairs(DataManager.BattleData.gridEntities) do
map[posId] = entity:getSnapshoptInfo()
map[tostring(posId)] = entity:getSnapshoptInfo()
end
Logger.logHighlight("——————————战斗棋盘快照如下————————")
Logger.logHighlight("——————————当前斗回合步骤————————" .. ModuleManager.BattleManager.battleController.roundStep)
Logger.printTable(map)
Logger.logHighlight("——————————当前斗回合步骤————————" .. ModuleManager.BattleManager.battleController.roundStep)
Logger.logHighlight(json.encode(map))
end
end

View File

@ -2615,7 +2615,7 @@ function BattleController:findLinkLine(posId, posIdMap, hadSkill, mainElementTyp
maxGotSkill = gotSkill
end
end
elseif gridEntity:getSkillId() and not hadSkill and mainElementType then
elseif gridEntity:canLink() and gridEntity:getSkillId() and not hadSkill and mainElementType then
local skillId = gridEntity:getSkillId()
local skillEntity = self.battleData:getSkillEntityBySkillId(skillId)
if skillEntity then