AI实现多个特性
This commit is contained in:
@@ -5,11 +5,25 @@ import (
|
||||
)
|
||||
|
||||
// 501. g1. 最后一个死 (只要有队友没死, 则自己又恢复hp和pp)
|
||||
// TODO: 实现g1. 最后一个死 (只要有队友没死, 则自己又恢复hp和pp)的核心逻辑
|
||||
// TODO: 需要了解如何判断队友状态并恢复HP和PP
|
||||
type NewSel501 struct {
|
||||
NewSel0
|
||||
}
|
||||
|
||||
func (e *NewSel501) SwitchOut(in *input.Input) bool {
|
||||
//魂印特性有不在场的情况,绑定时候将精灵和特性绑定
|
||||
if e.ID().GetCatchTime() != e.Ctx().Our.CurrentPet.Info.CatchTime {
|
||||
return true
|
||||
}
|
||||
|
||||
// TODO: 检查是否有队友还活着
|
||||
// 如果有队友活着,恢复自身HP和PP
|
||||
// e.Ctx().Our.Heal(e.Ctx().Our, nil, e.Ctx().Our.CurrentPet.GetMaxHP())
|
||||
// TODO: 恢复PP值的方法
|
||||
|
||||
return true
|
||||
}
|
||||
|
||||
func init() {
|
||||
input.InitEffect(input.EffectType.NewSel, 501, &NewSel501{})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user