package node import ( "blazing/logic/service/fight/info" "blazing/logic/service/fight/input" ) // 切精灵返回false,重写change方法来实现切换效果 // 精灵切换相关触发 func (e *EffectNode) Switch(in *input.Input, at info.AttackValue, outpet *info.BattlePetEntity) bool { //说明是我放切精灵 if e.Input == in { //下场,执行消回合效果 // e.ctx.Our.CancelAll() ///我放下场 e.Alive(false) } return true }