40 lines
571 B
Go
40 lines
571 B
Go
package effect
|
|
|
|
import (
|
|
"blazing/logic/service/fight/input"
|
|
)
|
|
|
|
// Effect 528: 先出手时{0}回合内不受能力下降技能影响
|
|
type Effect528 struct {
|
|
RoundEffectArg0Base
|
|
}
|
|
|
|
func (e *Effect528) OnSkill() bool {
|
|
|
|
// 检查是否先出手
|
|
if !e.IsFirst() {
|
|
e.Alive(false)
|
|
}
|
|
|
|
return true
|
|
}
|
|
|
|
func (e *Effect528) PropBefer(in *input.Input, prop int8, level int8) bool {
|
|
|
|
if in == e.Ctx().Our {
|
|
return true
|
|
}
|
|
|
|
//能力下降类
|
|
if level < 0 {
|
|
|
|
return false
|
|
|
|
}
|
|
return true
|
|
}
|
|
|
|
func init() {
|
|
input.InitEffect(input.EffectType.Skill, 528, &Effect528{})
|
|
}
|