Files
bl/logic/service/fight/boss/NewSeIdx_184.go
2026-04-04 04:28:04 +08:00

35 lines
646 B
Go

package effect
import (
"blazing/logic/service/fight/info"
"blazing/logic/service/fight/input"
"github.com/alpacahq/alpacadecimal"
)
// T84. 只有致命一击能造成伤害
type NewSel184 struct {
NewSel0
}
func (e *NewSel184) DamageDivEx(t *info.DamageZone) bool {
if e.ID().GetCatchTime() != e.Ctx().Our.CurrentPet[0].Info.CatchTime {
return true
}
if e.Ctx().SkillEntity == nil {
return true
}
if t.Type != info.DamageType.Red {
return true
}
if e.Ctx().SkillEntity.Crit > 0 {
return true
}
t.Damage = alpacadecimal.Zero
return true
}
func init() {
input.InitEffect(input.EffectType.NewSel, 184, &NewSel184{})
}