package effect import ( "blazing/logic/service/fight/info" "blazing/logic/service/fight/input" "blazing/logic/service/fight/node" ) // 427 - n回合内每次直接攻击都会使对手防御和特防m type Effect427 struct { node.EffectNode } func (e *Effect427) Skill_Use() bool { if e.Ctx().SkillEntity == nil { return true } if e.Ctx().SkillEntity != nil && e.Ctx().SkillEntity.Category() != info.Category.STATUS { // 降低对手防御 e.Ctx().Opp.SetProp(e.Ctx().Opp, 1, int8(e.SideEffectArgs[1])) e.Ctx().Opp.SetProp(e.Ctx().Opp, 3, int8(e.SideEffectArgs[1])) } return true } func (e *Effect427) SetArgs(t *input.Input, a ...int) { e.EffectNode.SetArgs(t, a...) e.EffectNode.Duration(a[0]) // 持续n回合 } func init() { input.InitEffect(input.EffectType.Skill, 427, &Effect427{}) }