package node import ( "blazing/logic/service/fight/action" "blazing/logic/service/fight/info" "blazing/logic/service/fight/input" ) func (e *EffectNode) Compare_Pre(fattack, sattack *action.SelectSkillAction) bool { return false } func (e *EffectNode) Turn_Start(ctx input.Ctx) { //panic("not implemented") // TODO: Implement } func (e *EffectNode) Turn_End(ctx input.Ctx) { if e.duration == 0 { // 保留 (负数表示永久) e.Alive(false) } else { e.trunl.Do(func() { if ctx.Input.FightC.IsFirst(ctx.Input.Player) { //如果对方先手 e.duration++ // e.Alive(true) } }) e.duration-- } } func (e *EffectNode) OnDefeat(*input.Input, *info.SkillEntity) bool { panic("not implemented") // TODO: Implement }