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.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 init() { input.InitEffect(input.EffectType.Skill, 420, &Effect420{}) }