From 4bda42441fefac2982575cc3d19af95c5778377c Mon Sep 17 00:00:00 2001 From: xiekaidong Date: Mon, 24 Apr 2023 19:29:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=AD=BB=E5=B1=80=E9=97=AE=E9=A2=98=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../battle/controller/battle_controller.lua | 21 +++++++------------ 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/lua/app/module/battle/controller/battle_controller.lua b/lua/app/module/battle/controller/battle_controller.lua index 3949ac02..8fb4f732 100644 --- a/lua/app/module/battle/controller/battle_controller.lua +++ b/lua/app/module/battle/controller/battle_controller.lua @@ -1771,22 +1771,17 @@ function BattleController:findAttention() for c = 1, GConst.BattleConst.COLUMN_COUNT do local posId = ModuleManager.BattleManager:getPosId(r, c) local gridEntity = self.battleData:getGridEntity(posId) - local skillId = gridEntity:getSkillId() local mainElementType = gridEntity:getElementType() - if skillId then - local skillEntity = self.battleData:getSkillEntityBySkillId(skillId) - if skillEntity:getIgnoreElementType() then - mainElementType = nil + if gridEntity:canChangeInfo() then + pathList = {} + posIdMap = {} + self:findLinkLine(posId, posIdMap, false, mainElementType, pathList) + if table.nums(pathList) >= self:getMinEliminationCount() then + Logger.printTable(pathList) + find = true + break end end - - pathList = {} - posIdMap = {} - self:findLinkLine(posId, posIdMap, mainElementType == nil, mainElementType, pathList) - if table.nums(pathList) >= self:getMinEliminationCount() then - find = true - break - end end if find then break