Files
bl/logic/service/fight/effect/437.go
xinian 069d961585
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful
refactor: 重构效果 150、196、437 实现
2026-03-08 16:22:54 +08:00

31 lines
569 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/info"
"blazing/logic/service/fight/input"
"blazing/logic/service/fight/node"
)
// 437 - 若对手处于能力强化状态则对手XX等级m
type Effect437 struct {
node.EffectNode
}
func (e *Effect437) OnSkill() bool {
for _, v := range e.Ctx().Opp.Prop[:] {
if v > 0 {
e.Ctx().Opp.SetProp(e.Ctx().Opp, int8(e.SideEffectArgs[0]), int8(e.SideEffectArgs[1]), info.AbilityOpType.SUB)
return true
}
}
return true
}
func init() {
input.InitEffect(input.EffectType.Skill, 437, &Effect437{})
}