diff --git a/logic/service/fight/effect/effect_20.go b/logic/service/fight/effect/effect_20.go index 4f109e82..6d5d14fa 100644 --- a/logic/service/fight/effect/effect_20.go +++ b/logic/service/fight/effect/effect_20.go @@ -21,6 +21,12 @@ type Effect20 struct { // 使用技能时,不可被继承,继承Miss和Hit就行 func (e *Effect20) OnSkill(input.Ctx) bool { - e.Input.AddEffect(input.Geteffect(input.EffectType.Status, int(info.PetStatus.Tired))) + ok, _, _ := e.Input.Player.Roll(e.SideEffectArgs[0], 100) + if !ok { + return true + } + t := input.Geteffect(input.EffectType.Status, int(info.PetStatus.Tired)) + t.Duration(e.SideEffectArgs[1]) + e.Input.AddEffect(t) return true }