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

23 lines
460 B
Go
Raw Normal View History

package node
import (
"blazing/logic/service/fight/info"
"blazing/logic/service/fight/input"
)
// 切精灵返回false重写change方法来实现切换效果
// 精灵切换相关触发
2025-09-29 02:40:35 +08:00
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
}