Files
bl/logic/service/fight/effect/533.go
xinian 322d5ea64d
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful
feat: 新增战斗技能效果 524-580
2026-03-17 15:25:08 +08:00

27 lines
549 B
Go

package effect
import (
"blazing/logic/service/fight/input"
"blazing/logic/service/fight/node"
)
// 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{})
}