Files
bl/logic/service/fight/boss/NewSeIdx_184.go
xinian 77bb7a7112
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful
fix: 修复伤害计算逻辑错误
2026-03-06 19:34:58 +08:00

35 lines
643 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.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{})
}