Files
bl/logic/service/fight/boss/NewSeIdx_13.go
xinian 9c6f3988de
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful
refactor: 重构 CurrentPet 为 CurPet
2026-04-04 04:34:43 +08:00

29 lines
768 B
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package effect
import (
"blazing/logic/service/fight/input"
"blazing/modules/player/model"
)
// 13. n 回合逃跑;a1: n, a2: 不逃跑精灵ID, a3/a4: 不逃跑系精灵)
// TODO: 实现n 回合逃跑;a1: n, a2: 不逃跑精灵ID, a3/a4: 不逃跑系精灵)的核心逻辑
type NewSel13 struct {
NewSel0
}
func (e *NewSel13) HookAction() bool {
if e.ID().GetCatchTime() != e.Ctx().Our.CurPet[0].Info.CatchTime {
return true
}
r := e.Ctx().Our.FightC.GetOverInfo()
if r.Round == uint32(e.Args()[0].IntPart()) {
e.Ctx().Our.FightC.Over(e.Ctx().Our.Player, model.BattleOverReason.PlayerEscape)
return false //阻止技能释放
}
return true //阻止技能释放
}
func init() {
input.InitEffect(input.EffectType.NewSel, 13, &NewSel13{})
}