Files
bl/logic/service/fight/effect/418.go
xinian 6c75b106b3
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful
refactor: 重构战斗效果实现
2026-03-08 15:26:07 +08:00

29 lines
567 B
Go

package effect
import (
"blazing/logic/service/fight/info"
"blazing/logic/service/fight/input"
"blazing/logic/service/fight/node"
)
// 418 - 若对手处于能力提升状态则对方XX等级+/-n
type Effect418 struct {
node.EffectNode
}
func (e *Effect418) OnSkill() bool {
for _, v := range e.Ctx().Opp.Prop[:] {
if v > 0 {
e.Ctx().Opp.SetProp(e.Ctx().Our, int8(e.SideEffectArgs[0]), int8(e.SideEffectArgs[1]), info.AbilityOpType.SUB)
return true
}
}
return true
}
func init() {
input.InitEffect(input.EffectType.Skill, 418, &Effect418{})
}