fix: 修复空提交问题

This commit is contained in:
1
2025-11-21 05:47:51 +00:00
parent 8a10948775
commit 315f720e49
22 changed files with 46 additions and 47 deletions

View File

@@ -101,7 +101,7 @@ func (our *Input) DelPP(value int) {
// 伤害落实 // 血量扣减节点比如触发回神,反弹也在这里实现
func (our *Input) Damage(in *Input, sub *info.DamageZone) {
if sub.Type == info.DamageType.Red { //每回合计算伤害的时候重置伤害
our.Opp.DamageZone.Damage = sub.Damage
our.Opp.SumDamage = sub.Damage
}
// 对方对我方造成,需要吃到对方的加成
@@ -174,8 +174,8 @@ func (our *Input) Damage(in *Input, sub *info.DamageZone) {
}
if sub.Type == info.DamageType.Red { //红才会产生造成伤害
our.Opp.DamageZone.Damage = sub.Damage // 叠加总伤害 这里相当于记录红伤
our.Opp.AttackValue.LostHp = uint32(our.Opp.DamageZone.Damage.IntPart()) //红伤落实
our.Opp.SumDamage = sub.Damage // 叠加总伤害 这里相当于记录红伤
our.Opp.AttackValue.LostHp = uint32(our.Opp.SumDamage.IntPart()) //红伤落实
}
if uint32(sub.Damage.IntPart()) > our.CurrentPet.Info.Hp {