Files
bl/logic/service/fight/boss/NewSeIdx_37.go
xinian 9c6f3988de
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful
refactor: 重构 CurrentPet 为 CurPet
2026-04-04 04:34:43 +08:00

33 lines
600 B
Go

package effect
import (
"blazing/logic/service/fight/info"
"blazing/logic/service/fight/input"
)
// 37. 自身 一次受到大于n 的伤害时直接将对方体力降至0;
type NewSel37 struct {
NewSel0
}
func (e *NewSel37) DamageLockEx(t *info.DamageZone) bool {
if e.ID().GetCatchTime() != e.Ctx().Our.CurPet[0].Info.CatchTime {
return true
}
if t.Type != info.DamageType.Red {
return true
}
if t.Damage.IntPart() > int64(e.Args()[0].IntPart()) {
e.Ctx().Opp.CurPet[0].Info.Hp = 0
}
return true
}
func init() {
input.InitEffect(input.EffectType.NewSel, 37, &NewSel37{})
}