Files
bl/logic/service/fight/boss/NewSeIdx_2.go

32 lines
549 B
Go

package effect
import (
"blazing/logic/service/fight/input"
)
// 2. 免疫 "异常状态"
type NewSel2 struct {
NewSel0
}
func (e *NewSel2) EFFect_Befer(in *input.Input, effEffect input.Effect) bool {
//魂印特性有不在场的情况,绑定时候将精灵和特性绑定
if e.ID().GetCatchTime() != e.Ctx().Our.CurrentPet.Info.CatchTime {
return true
}
if in != e.Ctx().Opp {
return true
}
if input.IS_Stat(effEffect) {
return false
}
return true
}
func init() {
input.InitEffect(input.EffectType.NewSel, 2, &NewSel2{})
}