From 143f67c2f35343da0e03ebc27d16e40600eb8502 Mon Sep 17 00:00:00 2001 From: xiekaidong Date: Thu, 1 Jun 2023 18:18:54 +0800 Subject: [PATCH] =?UTF-8?q?=E7=89=B9=E6=95=88=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 --- lua/app/module/battle/battle_const.lua | 4 ++++ lua/app/module/battle/controller/battle_controller.lua | 6 ++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/lua/app/module/battle/battle_const.lua b/lua/app/module/battle/battle_const.lua index 07bbffa5..ff266fa9 100644 --- a/lua/app/module/battle/battle_const.lua +++ b/lua/app/module/battle/battle_const.lua @@ -730,6 +730,10 @@ BattleConst.ATTACK_OVER_ACTIVE_SKILL_TYPE = { [BattleConst.SKILL_TYPE.CHANGE_ELEMENT_TYPE] = true, } +BattleConst.NO_EFFECT_GRID_SKILL_TYPE = { + [BattleConst.SKILL_TYPE.CHANGE_AROUND] = true +} + BattleConst.SKILL_METHOD_TYPE = { ON_ENTER = 1, ON_FINAL = 2, diff --git a/lua/app/module/battle/controller/battle_controller.lua b/lua/app/module/battle/controller/battle_controller.lua index 2d9fee35..3fda483c 100644 --- a/lua/app/module/battle/controller/battle_controller.lua +++ b/lua/app/module/battle/controller/battle_controller.lua @@ -1022,8 +1022,10 @@ function BattleController:calculateCurElimination(onlyCheck) if info.isSkill then randomPosList, influenceElementTypeMap = self:dealSkillElement(info.timeIdx + skillTime, self.breakedMap, self.sequenceMap, self.aniSequence, self.boomGridIds, onlyCheck) local aniUnit = self.aniSequence[i] - aniUnit.rangeList = skillEntity:getBoardRange() - aniUnit.randomPosList = randomPosList + if not BattleConst.NO_EFFECT_GRID_SKILL_TYPE[skillEntity:getSkillType()] then + aniUnit.rangeList = skillEntity:getBoardRange() + aniUnit.randomPosList = randomPosList + end break end end