11
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful

This commit is contained in:
昔念
2026-04-23 23:17:16 +08:00
parent c4b5748e5c
commit 11bf46c7e4

View File

@@ -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