Files
bl/logic/service/fight/effect/533.go
xinian 875ad668aa
Some checks failed
ci/woodpecker/push/my-first-workflow Pipeline failed
feat: 实现战斗效果逻辑和接口重构
2026-03-28 21:57:22 +08:00

28 lines
556 B
Go

package effect
import (
"blazing/logic/service/fight/input"
"blazing/logic/service/fight/node"
)
// Effect 533: 消除双方能力提升、下降状态
type Effect533 struct {
node.EffectNode
}
func (e *Effect533) OnSkill() bool {
// 消除自己
for i := 0; i < len(e.Ctx().Our.Prop); i++ {
e.Ctx().Our.SetProp(e.Ctx().Our, int8(i), 0)
}
// 消除对手
for i := 0; i < len(e.Ctx().Opp.Prop); i++ {
e.Ctx().Opp.SetProp(e.Ctx().Our, int8(i), 0)
}
return true
}
func init() {
input.InitEffect(input.EffectType.Skill, 533, &Effect533{})
}