From 2a515e0a75d11188fa7e8e36acb71a8bd518c865 Mon Sep 17 00:00:00 2001 From: puxuan <413323644@qq.com> Date: Wed, 5 Nov 2025 18:22:02 +0800 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E6=84=88buff=E5=9B=9E=E5=A4=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/app/module/battle/helper/battle_formula.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/app/module/battle/helper/battle_formula.lua b/lua/app/module/battle/helper/battle_formula.lua index 7f1199ad..3d2b47e9 100644 --- a/lua/app/module/battle/helper/battle_formula.lua +++ b/lua/app/module/battle/helper/battle_formula.lua @@ -120,7 +120,7 @@ BattleFormula.calculateFormula = { end, -- 角色攻击力*技能倍率*(1+治疗效果增加) [3] = function(unitComp, buff, targetUnit) - local result = unitComp.unitEntity:getAtk() * buff:getEffectNum() // DEFAULT_FACTOR * (unitComp.unitEntity:getCureAddition() - unitComp.unitEntity:getCureDec() + DEFAULT_FACTOR) // DEFAULT_FACTOR + local result = buff.owner:getAtk() * buff:getEffectNum() // DEFAULT_FACTOR * (buff.owner:getCureAddition() - buff.owner:getCureDec() + DEFAULT_FACTOR) // DEFAULT_FACTOR return result, 0 end, -- 释放者攻击*技能系数*(1+(攻击者元素伤害增加+所有伤害增加-攻击者元素伤害降低-所有伤害降低+受到元素伤害增加+受到所有伤害增加(受击)-受到元素伤害降低-受到所有伤害降低(受击))