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