1
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user