This commit is contained in:
昔念
2026-02-09 02:31:50 +08:00
parent 2860bcfa5c
commit ecb20ef99d

View File

@@ -24,9 +24,13 @@ type Effect8 struct {
// DamageFloor 伤害落实前触发,限制最大伤害 // DamageFloor 伤害落实前触发,限制最大伤害
func (e *Effect8) DamageFloor(t *info.DamageZone) bool { func (e *Effect8) DamageFloor(t *info.DamageZone) bool {
if e.Ctx().Opp.CurrentPet.GetHP().IntPart() <= 1 {
return true
}
if t.Type == info.DamageType.Red { if t.Type == info.DamageType.Red {
t.Damage = alpacadecimal.Min(t.Damage, e.Ctx().Opp.CurrentPet.GetHP().Sub(alpacadecimal.NewFromInt(1))) t.Damage = alpacadecimal.Min(t.Damage, e.Ctx().Opp.CurrentPet.GetHP().Sub(alpacadecimal.NewFromInt(1)))
e.max = t.Damage e.max = t.Damage
} }