Files
bl/logic/service/fight/node/PetSwitch.go

26 lines
395 B
Go
Raw Normal View History

package node
import (
"blazing/logic/service/fight/input"
)
func (e *EffectNode) SwitchIn(in *input.Input) bool {
2025-09-29 02:40:35 +08:00
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
}