32 lines
505 B
Go
32 lines
505 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.IsOwner() {
|
|
return true
|
|
}
|
|
|
|
if in != e.OpponentInput() {
|
|
return true
|
|
}
|
|
if input.IS_Stat(effEffect) {
|
|
return false
|
|
}
|
|
|
|
return true
|
|
}
|
|
func init() {
|
|
input.InitEffect(input.EffectType.NewSel, 2, &NewSel2{})
|
|
|
|
}
|