fix(fight): 战斗修改
This commit is contained in:
@@ -23,6 +23,7 @@ type EffectNode struct {
|
||||
alive bool // 是否失效 effect返回值是否被取消,是否被删除
|
||||
hit bool
|
||||
trunl sync.Once
|
||||
ctx input.Ctx
|
||||
//增加owner target,如果owner target都为自身,就回合效果结束后再使用回合效果
|
||||
}
|
||||
|
||||
@@ -39,7 +40,11 @@ func (e *EffectNode) GetInput() *input.Input {
|
||||
return e.Input
|
||||
|
||||
}
|
||||
func (e *EffectNode) Ctx() *input.Ctx {
|
||||
|
||||
return &e.ctx
|
||||
|
||||
}
|
||||
func (e *EffectNode) Stack(t ...int) int {
|
||||
if len(t) > 0 {
|
||||
e.stacks = t[0]
|
||||
|
||||
Reference in New Issue
Block a user