Files
bl/logic/service/fight/effect/85.go
xinian 18fbfcf3cc
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful
编辑文件 85.go
2026-03-09 01:06:44 +08:00

34 lines
574 B
Go

package effect
import (
"blazing/logic/service/fight/input"
"blazing/logic/service/fight/node"
)
type Effect85 struct {
node.EffectNode
}
// ----------------------
// 执行时逻辑
// ----------------------
func (e *Effect85) OnSkill() bool {
for i, v := range e.Ctx().Opp.Prop[:] {
if v > 0 {
e.Ctx().Our.SetProp(e.Ctx().Our, int8(i), v)
e.Ctx().Opp.SetProp(e.Ctx().Our,int8(i),0)
}
}
return true
}
// ----------------------
// 注册所有效果
// ----------------------
func init() {
input.InitEffect(input.EffectType.Skill, 85, &Effect85{})
}