35 lines
777 B
Go
35 lines
777 B
Go
|
|
package effect
|
||
|
|
|
||
|
|
import (
|
||
|
|
"blazing/logic/service/fight/input"
|
||
|
|
"blazing/logic/service/fight/node"
|
||
|
|
)
|
||
|
|
|
||
|
|
// 420 - 使用了该技能后,若受到消除强化类技能攻击,则对方则对方攻击和特攻等级+/-n
|
||
|
|
type Effect420 struct {
|
||
|
|
node.EffectNode
|
||
|
|
}
|
||
|
|
|
||
|
|
func (e *Effect420) PropBefer(in *input.Input, prop int8, level int8) bool {
|
||
|
|
|
||
|
|
if in == e.Ctx().Our {
|
||
|
|
return true
|
||
|
|
}
|
||
|
|
|
||
|
|
//能力下降类
|
||
|
|
if level == 0 {
|
||
|
|
e.Ctx().Opp.SetProp(e.Ctx().Our, 0, int8(e.SideEffectArgs[0]))
|
||
|
|
e.Ctx().Opp.SetProp(e.Ctx().Our, 1, int8(e.SideEffectArgs[0]))
|
||
|
|
|
||
|
|
}
|
||
|
|
return true
|
||
|
|
}
|
||
|
|
func (e *Effect420) SetArgs(t *input.Input, a ...int) {
|
||
|
|
e.EffectNode.SetArgs(t, a...)
|
||
|
|
e.EffectNode.Duration(-1) // 持续n回合
|
||
|
|
}
|
||
|
|
func init() {
|
||
|
|
input.InitEffect(input.EffectType.Skill, 420, &Effect420{})
|
||
|
|
|
||
|
|
}
|