package node import ( "blazing/logic/service/fight/input" ) func (e *EffectNode) SwitchIn(in *input.Input) bool { return true } func (e *EffectNode) SwitchOut(in *input.Input) bool { //说明是我放切精灵 if e.Input == in { //下场,执行消回合效果 // e.ctx.Our.CancelAll() ///我放下场 e.Alive(false) } if in == e.Ctx().Our { e.Alive(false) } return true }