refactor: 重、、、、
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user