Files
bl/logic/service/fight/boss/NewSeIdx_113.go
1 9199768c37 ```feat(fight): 新增特性实现及逻辑优化
1. 实现NewSel114免疫瞬杀特性逻辑
2. 完善NewSel113异常状态伤害锁定逻辑
3. 修复Effect13技能效果添加错误
4. 优化ParasiticSeed状态切换处理
5. 移除无用TODO注释和废弃代码
2026-01-23 20:18:58 +00:00

38 lines
749 B
Go

package effect
import (
"blazing/logic/service/fight/info"
"blazing/logic/service/fight/input"
"github.com/alpacahq/alpacadecimal"
)
// todo "只有当自己处于异常状态时才会受到伤害"
type NewSel113 struct {
NewSel0
count int
}
func (e *NewSel404) DamageLock(t *info.DamageZone) bool {
//魂印特性有不在场的情况,绑定时候将精灵和特性绑定
if e.ID().GetCatchTime() != e.Ctx().Our.CurrentPet.Info.CatchTime {
return true
}
if t.Type != info.DamageType.Red {
return true
}
for _, v := range e.Ctx().Our.Effects {
if v.Alive() && input.IS_Stat(v) {
return true
}
}
t.Damage = alpacadecimal.Zero
return true
}
func init() {
input.InitEffect(input.EffectType.NewSel, 113, &NewSel113{})
}