Files
bl/logic/service/fight/effect/143.go
xinian 78a68148ce
Some checks failed
ci/woodpecker/push/my-first-workflow Pipeline failed
chore: update fight logic and effect implementations
2026-04-05 02:25:44 +08:00

34 lines
621 B
Go

package effect
import (
"blazing/logic/service/fight/input"
"blazing/logic/service/fight/node"
)
// Effect 143: 使对手的能力提升效果反转成能力下降效果
type Effect143 struct {
node.EffectNode
}
// ----------------------
// 执行时逻辑
// ----------------------
func (e *Effect143) OnSkill() bool {
for i, v := range e.TargetInput().Prop[:] {
if v > 0 {
e.TargetInput().SetProp(e.CarrierInput(), int8(i), -2*v)
}
}
return true
}
// ----------------------
// 注册所有效果
// ----------------------
func init() {
input.InitEffect(input.EffectType.Skill, 143, &Effect143{})
}