feat(logic/service/fight/input/fight.go): 更新宠物治疗时的攻击值恢复

在宠物使用治疗技能时,同步更新攻击值的恢复量,确保治疗效果正确反映到战斗属性中。
```
This commit is contained in:
2025-11-08 02:21:30 +08:00
parent a42bd76517
commit ca005bdb56

View File

@@ -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)
}