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

29 lines
596 B
Go
Raw Normal View History

package node
import (
"blazing/logic/service/fight/input"
)
2025-09-29 02:40:35 +08:00
// 切精灵返回false重写change方法来实现切换效果
// 精灵切换相关触发
2025-09-29 02:40:35 +08:00
func (e *EffectNode) OnSwitchIn(ctx input.Ctx) bool {
//panic("not implemented") // TODO: Implement
return true
}
2025-09-29 02:40:35 +08:00
func (e *EffectNode) OnSwitchOut(ctx input.Ctx) bool {
return true
}
2025-09-29 02:40:35 +08:00
func (e *EffectNode) OnOwnerSwitchIn(ctx input.Ctx) bool {
return true
}
// 自身下场,清除掉技能效果
2025-09-29 02:40:35 +08:00
func (e *EffectNode) OnOwnerSwitchOut(ctx input.Ctx) bool {
// e.Input.AttackValue = info.NewAttackValue(e.Input.UserID)
return true
}