Files
bl/logic/service/fight/boss/NewSeIdx_10.go
2026-01-22 08:59:25 +08:00

43 lines
774 B
Go

package effect
import (
"blazing/logic/service/fight/action"
"blazing/logic/service/fight/input"
)
// 10. 无限PP值;
// TODO: 实现无限PP值;的核心逻辑
type NewSel10 struct {
NewSel0
can bool
}
func (e *NewSel10) SwitchOut(in *input.Input) bool {
e.can=false
return true
}
func (e *NewSel10) TurnStart(fattack *action.SelectSkillAction, sattack *action.SelectSkillAction) {
if e.can {
e.Ctx().Our.HealPP(-1)
}
}
func (e *NewSel10) OnSkill() bool {
if e.ID().GetCatchTime() != e.Ctx().Our.CurrentPet.Info.CatchTime {
return true
}
e.can = true
// if e.Ctx().SkillEntity == nil {
// return true
// }
// e.Ctx().SkillEntity.Info.PP = math.MaxInt32
return true
}
func init() {
input.InitEffect(input.EffectType.NewSel, 10, &NewSel10{})
}