From b9b8a10cc447a897f40d6cf71fdb27143643defd Mon Sep 17 00:00:00 2001 From: xiekaidong Date: Tue, 12 Sep 2023 10:24:02 +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/component/battle_unit_comp.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/app/module/battle/component/battle_unit_comp.lua b/lua/app/module/battle/component/battle_unit_comp.lua index d3c7e39a..6cac7735 100644 --- a/lua/app/module/battle/component/battle_unit_comp.lua +++ b/lua/app/module/battle/component/battle_unit_comp.lua @@ -1531,7 +1531,7 @@ function BattleUnitComp:takeEffect(buff, target, conditionResult) end end - if buff:isDecreaseGain() and self.unitEntity:getIsImmuneReductionBenefit() then -- 有免疫减益属性 + if buff:isDecreaseGain() and target.unitEntity:getIsImmuneReductionBenefit() then -- 有免疫减益属性 return false end