Files
bl/logic/service/fight/node/Turn.go
2025-11-16 13:10:34 +00:00

37 lines
751 B
Go

package node
import (
"blazing/logic/service/fight/action"
)
func (e *EffectNode) Skill_Hit_Pre(fattack, sattack *action.SelectSkillAction) bool {
return true
}
func (e *EffectNode) Compare_Pre(fattack, sattack *action.SelectSkillAction) bool { //比较前对优先级的修改 {
return true
}
func (e *EffectNode) Turn_Start(fattack, sattack *action.SelectSkillAction) {
//panic("not implemented") // TODO: Implement
}
func (e *EffectNode) Turn_End() {
if e.duration == 0 { // 保留 (负数表示永久)
e.Alive(false)
} else {
// e.trunl.Do(func() {
// if !e.Ctx().Our.FightC.IsFirst(e.Ctx().Our.Player) { //如果我方后手,那就给回合+1
// e.duration++
// // e.Alive(true)
// }
// })
e.duration--
}
}