From ca005bdb565dc3ec33d7f69f56a054d584bb4f9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=94=E5=BF=B5?= <1@72wo.cn> Date: Sat, 8 Nov 2025 02:21:30 +0800 Subject: [PATCH] =?UTF-8?q?```=20feat(logic/service/fight/input/fight.go):?= =?UTF-8?q?=20=E6=9B=B4=E6=96=B0=E5=AE=A0=E7=89=A9=E6=B2=BB=E7=96=97?= =?UTF-8?q?=E6=97=B6=E7=9A=84=E6=94=BB=E5=87=BB=E5=80=BC=E6=81=A2=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 在宠物使用治疗技能时,同步更新攻击值的恢复量,确保治疗效果正确反映到战斗属性中。 ``` --- logic/service/fight/input/fight.go | 1 + 1 file changed, 1 insertion(+) diff --git a/logic/service/fight/input/fight.go b/logic/service/fight/input/fight.go index 6fcef3ee..e69b0f20 100644 --- a/logic/service/fight/input/fight.go +++ b/logic/service/fight/input/fight.go @@ -47,6 +47,7 @@ func (u *Input) UseSkill(opp *Input, skill *action.SelectSkillAction) { func (u *Input) Heal(ac action.BattleActionI, value decimal.Decimal) { u.CurrentPet.Info.Hp += uint32(value.IntPart()) + u.AttackValue.GainHp = int32(value.IntPart()) u.CurrentPet.Info.Hp = utils.Min(u.CurrentPet.Info.Hp, u.CurrentPet.Info.MaxHp) }