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

30 lines
452 B
Go

package effect
import (
"blazing/logic/service/fight/input"
"blazing/logic/service/fight/node"
)
// Effect 521: 反转自身能力下降状态
type Effect521 struct {
node.EffectNode
}
func (e *Effect521) OnSkill() bool {
for i, v := range e.Ctx().Our.Prop[:] {
if v < 0 {
e.Ctx().Our.SetProp(e.Ctx().Our, int8(i), -2*v)
return true
}
}
return true
}
func init() {
input.InitEffect(input.EffectType.Skill, 521, &Effect521{})
}