diff --git a/logic/service/fight/effect/effect_status.go b/logic/service/fight/effect/effect_status.go index 2e177115..1650c98e 100644 --- a/logic/service/fight/effect/effect_status.go +++ b/logic/service/fight/effect/effect_status.go @@ -41,21 +41,13 @@ type StatusSleep struct { StatusCannotAct } -// 睡眠在“被攻击且未 miss”后立即解除,而不是等到技能使用后节点。 -func (e *StatusSleep) DamageSubEx(zone *info.DamageZone) bool { - if zone == nil || e.Ctx().SkillEntity == nil { - return true - } - if e.Ctx().SkillEntity.Category() != info.Category.STATUS { - e.Alive(false) - } - return true -} - func (e *StatusSleep) Skill_Use_ex() bool { - if e.Ctx().SkillEntity != nil && e.Ctx().Category() != info.Category.STATUS { - e.Alive(false) + if e.Ctx().SkillEntity != nil { + if e.Ctx().SkillEntity.AttackTime != 0 && e.Ctx().Category() != info.Category.STATUS { + e.Alive(false) + } + } return true