From f3ada66c11c5a1b7f8e965a7e3306945f850ff4b Mon Sep 17 00:00:00 2001 From: xinian Date: Mon, 9 Mar 2026 01:20:57 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BC=96=E8=BE=91=E6=96=87=E4=BB=B6=20effect?= =?UTF-8?q?=5Fprop.go?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- logic/service/fight/effect/effect_prop.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/logic/service/fight/effect/effect_prop.go b/logic/service/fight/effect/effect_prop.go index e4329a69..e99d0a26 100644 --- a/logic/service/fight/effect/effect_prop.go +++ b/logic/service/fight/effect/effect_prop.go @@ -19,10 +19,11 @@ func (e *Effect3) OnSkill() bool { // 遍历六项能力值(攻击、防御、速度等) for i := 0; i < 6; i++ { - if e.Reverse { + if e.Reverse&&i>0 { // 对对手生效 e.Ctx().Opp.SetProp(e.Ctx().Our, int8(i), e.Level) - } else { + } + if !e.Reverse &&i<0{ // 对自己生效 e.Ctx().Our.SetProp(e.Ctx().Our, int8(i), e.Level) }