From 74a20b6bbe3f073483315f857a7e2730d938f584 Mon Sep 17 00:00:00 2001 From: xiekaidong Date: Tue, 18 Apr 2023 18:40:14 +0800 Subject: [PATCH] =?UTF-8?q?=E8=82=89=E9=B8=BD=E6=8A=80=E8=83=BD=E5=B1=9E?= =?UTF-8?q?=E6=80=A7=E5=8A=A0=E6=88=90?= 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, 2 insertions(+), 2 deletions(-) diff --git a/lua/app/module/battle/controller/battle_controller.lua b/lua/app/module/battle/controller/battle_controller.lua index c0ad1e50..3a199fff 100644 --- a/lua/app/module/battle/controller/battle_controller.lua +++ b/lua/app/module/battle/controller/battle_controller.lua @@ -1282,8 +1282,8 @@ end local function _addCurRoundAttr(self, instruction, callback) if instruction.effectList then - local mainComp = self:getOtherSideMainUnit(BattleConst.SIDE_ATK) - local defComp = self:getOtherSideMainUnit(BattleConst.SIDE_DEF) + local defComp = self:getOtherSideMainUnit(BattleConst.SIDE_ATK) + local mainComp = self:getOtherSideMainUnit(BattleConst.SIDE_DEF) for _, effect in ipairs(instruction.effectList) do local target if effect:getTartgetSide() == BattleConst.SIDE_DEF then