From 86d28f47d14b1625f66dcd6f2ba8fcfe5cc49bad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=94=E5=BF=B5?= <12574910+72wo@users.noreply.github.com> Date: Mon, 9 Mar 2026 00:40:13 +0800 Subject: [PATCH] =?UTF-8?q?```=20fix(fight):=20=E4=BF=AE=E5=A4=8D=E5=B1=9E?= =?UTF-8?q?=E6=80=A7=E5=80=BC=E8=AE=A1=E7=AE=97=E9=80=BB=E8=BE=91=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 在SetProp方法中,当level为负数时应该减少攻击值而不是增加, 修正了属性值变化的方向错误。 ``` --- logic/service/fight/input/prop.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/logic/service/fight/input/prop.go b/logic/service/fight/input/prop.go index 2c6989340..26f645c35 100644 --- a/logic/service/fight/input/prop.go +++ b/logic/service/fight/input/prop.go @@ -33,7 +33,7 @@ func (target *Input) SetProp(source *Input, index, level int8) bool { switch { case level < 0: if target.AttackValue.Prop[index] > -6 { - target.AttackValue.Prop[index] -= level + target.AttackValue.Prop[index] += level } else { return false }