Files
bl/logic/service/fight/effect/420.go

30 lines
637 B
Go

package effect
import (
"blazing/logic/service/fight/input"
)
// Effect 420: 使用了该技能后,若受到消除强化类技能攻击,则对方攻击和特攻等级{0}
type Effect420 struct {
FixedDurationNeg1Base
}
func (e *Effect420) PropBefer(in *input.Input, prop int8, level int8) bool {
if in == e.CarrierInput() {
return true
}
//能力下降类
if level == 0 {
e.OpponentInput().SetProp(e.CarrierInput(), 0, int8(e.SideEffectArgs[0]))
e.OpponentInput().SetProp(e.CarrierInput(), 1, int8(e.SideEffectArgs[0]))
}
return true
}
func init() {
input.InitEffect(input.EffectType.Skill, 420, &Effect420{})
}