package effect import ( "blazing/logic/service/fight/info" "blazing/logic/service/fight/input" "blazing/logic/service/fight/node" ) /** * n回合内令对手使用的属性技能无效 */ type Effect478 struct { node.EffectNode can bool } func init() { ret := &Effect478{} input.InitEffect(input.EffectType.Skill, 478, ret) } // 命中之后 func (e *Effect478) OnSkill() bool { e.can = true return true } func (e *Effect478) SkillHit_ex() bool { if !e.can { return true } if e.Ctx().SkillEntity.Category() != info.Category.STATUS { return true } e.Ctx().SkillEntity.SetNoSide() return true } func (e *Effect478) SetArgs(t *input.Input, a ...int) { e.EffectNode.SetArgs(t, a...) e.EffectNode.Duration(e.EffectNode.SideEffectArgs[0]) }