From 8992132d13b57dc89dac2aebb84ceeb77e931768 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=94=E5=BF=B5?= <12574910+72wo@users.noreply.github.com> Date: Tue, 10 Mar 2026 09:33:27 +0800 Subject: [PATCH] =?UTF-8?q?```=20fix(fight):=20=E4=BF=AE=E5=A4=8D=E6=8A=80?= =?UTF-8?q?=E8=83=BD=E6=95=88=E6=9E=9C=E5=8F=82=E6=95=B0=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E5=92=8C=E4=BC=A4=E5=AE=B3=E7=BB=9F=E8=AE=A1=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修复effect_508中参数索引错误,将Args()[1]改为Args()[0] - 修复effect_508中持续时间设置错误,统一设置为1 - 修复战斗伤害统计错误,将我方受伤统计改为对方受伤统计 ``` --- logic/service/fight/effect/effect_508.go | 6 +++--- logic/service/fight/input/fight.go | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/logic/service/fight/effect/effect_508.go b/logic/service/fight/effect/effect_508.go index 2bd00bba..0e5e74d1 100644 --- a/logic/service/fight/effect/effect_508.go +++ b/logic/service/fight/effect/effect_508.go @@ -35,8 +35,8 @@ func (e *Effect508) DamageSubEx(t *info.DamageZone) bool { return true } - if t.Damage.Cmp(e.Args()[1]) > 0 { - t.Damage = t.Damage.Sub(e.Args()[1]) + if t.Damage.Cmp(e.Args()[0]) > 0 { + t.Damage = t.Damage.Sub(e.Args()[0]) } else { t.Damage = alpacadecimal.Zero } @@ -45,6 +45,6 @@ func (e *Effect508) DamageSubEx(t *info.DamageZone) bool { func (e *Effect508) SetArgs(t *input.Input, a ...int) { e.EffectNode.SetArgs(t, a...) - e.EffectNode.Duration(e.EffectNode.SideEffectArgs[0]) + e.EffectNode.Duration(1) } diff --git a/logic/service/fight/input/fight.go b/logic/service/fight/input/fight.go index aaaf6db7..984e2eda 100644 --- a/logic/service/fight/input/fight.go +++ b/logic/service/fight/input/fight.go @@ -166,7 +166,7 @@ func (our *Input) Damage(in *Input, sub *info.DamageZone) { }) } if sub.Type == info.DamageType.Red { //红才会产生造成伤害 - our.AttackValue.LostHp += uint32(sub.Damage.IntPart()) //红伤落实 + our.Opp.AttackValue.LostHp += uint32(sub.Damage.IntPart()) //红伤落实 }