fix(fight): 修正空变更导致的潜在逻辑问题

This commit is contained in:
1
2025-11-27 11:11:13 +00:00
parent aa87e1c55a
commit 279f5d9d39

View File

@@ -40,11 +40,15 @@ func (e *Effect73) Action_end_ex() bool {
if !e.Input.FightC.IsFirst(e.Ctx().Our.Player) {
return true
}
e.Ctx().Opp.Damage(e.Ctx().Our, &info.DamageZone{
tt := &info.DamageZone{
Type: info.DamageType.Fixed,
Damage: e.Ctx().Opp.SumDamage.Mul(decimal.NewFromInt(2)),
})
}
maxhp := e.Ctx().Our.CurrentPet.GetMaxHP().Mul(decimal.NewFromInt(30))
if tt.Damage.Cmp(maxhp) == 1 {
tt.Damage = maxhp
}
e.Ctx().Opp.Damage(e.Ctx().Our, tt)
return true
}