Files
bl/logic/service/fight/boss/NewSeIdx_114.go
昔念 fa928c9a48 ```
feat(common): 添加GlowFilter的Level字段

添加了GlowFilter结构体中的Level字段,用于表示等级信息,
对应JSON标签为"level,omitempty"

---

fix(utils): 修复concurrent_swiss_map中的panic处理

- 使用goroutine替代线程池来监听通道
- 添加panic恢复机制,当发生panic时记录错误日志
- 确保在异常情况下程序能够
2026-01-25 23:17:46 +08:00

42 lines
815 B
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package effect
import (
"blazing/logic/service/fight/action"
"blazing/logic/service/fight/input"
)
// 免疫瞬杀
type NewSel114 struct {
NewSel0
v []*input.Effect
}
func (e *NewSel114) TurnStart(fattack *action.SelectSkillAction, sattack *action.SelectSkillAction) {
// TODO: 实现若遇到天敌, 则战斗开始时连续害怕 n 回合;a1: n的核心逻辑
if e.ID().GetCatchTime() != e.Ctx().Our.CurrentPet.Info.CatchTime {
return
}
for _, v := range e.Ctx().Opp.Effects {
if v.ID().GetEffectType() == input.EffectType.NewSel && v.ID().Suffix() == 32 {
v.Alive(false)
e.v = append(e.v, &v)
}
}
}
func (e *NewSel114) TurnEnd() {
for _, v := range e.v {
if v != nil {
e.Alive(true)
}
}
}
func init() {
input.InitEffect(input.EffectType.NewSel, 114, &NewSel114{})
}