refactor: 重、、、、

This commit is contained in:
xinian
2026-04-04 06:11:01 +08:00
committed by cnb
parent 28d92c1e18
commit 3a9932e307
18 changed files with 665 additions and 680 deletions

View File

@@ -8,6 +8,10 @@ import (
"github.com/alpacahq/alpacadecimal"
)
type EffectContextHolder struct {
input.Ctx
}
// 检查,激活,延后
// /基础节点
type EffectNode struct {
@@ -26,7 +30,7 @@ type EffectNode struct {
alive bool // 是否失效 effect返回值是否被取消是否被删除
hit bool
trunl sync.Once
ctx input.Ctx
EffectContextHolder
//增加owner target如果owner target都为自身就回合效果结束后再使用回合效果
}
@@ -47,7 +51,7 @@ func (e *EffectNode) GetInput() *input.Input {
}
func (e *EffectNode) Ctx() *input.Ctx {
return &e.ctx
return &e.EffectContextHolder.Ctx
}
func (e *EffectNode) Stack(t ...int) int {