29 lines
772 B
Go
29 lines
772 B
Go
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.CurrentPet[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{})
|
||
}
|