This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user