From 10bd5a422ddcd5af8f223c23c1d7bf0a9964db95 Mon Sep 17 00:00:00 2001 From: xiekaidong Date: Wed, 31 May 2023 16:43:46 +0800 Subject: [PATCH] =?UTF-8?q?bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/app/module/battle/controller/battle_controller.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lua/app/module/battle/controller/battle_controller.lua b/lua/app/module/battle/controller/battle_controller.lua index 1079043d..60c35ba5 100644 --- a/lua/app/module/battle/controller/battle_controller.lua +++ b/lua/app/module/battle/controller/battle_controller.lua @@ -1018,7 +1018,9 @@ function BattleController:calculateCurElimination(onlyCheck) local elementType = entity:getElementType() if not info.noAni and info.isIdle then if not info.isSkill then - elementTypeMap[elementType] = (elementTypeMap[elementType] or 0) + 1 + if not entity:isElmentTypeInvalid() then + elementTypeMap[elementType] = (elementTypeMap[elementType] or 0) + 1 + end if boomGridIds[info.posId] and boomGridIds[info.posId][GRID_BREAK_CONDITION.LINE] then lineCount = lineCount + 1 linkElementType = elementType