33 lines
608 B
Go
33 lines
608 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.CurrentPet[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.CurrentPet[0].Info.Hp = 0
|
|
|
|
}
|
|
|
|
return true
|
|
}
|
|
func init() {
|
|
input.InitEffect(input.EffectType.NewSel, 37, &NewSel37{})
|
|
}
|