fix(fightc): 修复睡眠状态清除逻辑
在处理技能攻击时,只有当技能类型不是状态类技能时, 才会清除目标的睡眠状态效果。这样避免了状态类技能 误清除睡眠效果的问题。
This commit is contained in:
@@ -286,9 +286,11 @@ func (f *FightC) processSkillAttack(attacker, defender *input.Input, a *action.S
|
||||
})
|
||||
attacker.DamageZone.Damage = attacker.CalculatePower(defender, a.SkillEntity)
|
||||
//睡眠受击消除
|
||||
t := defender.GetEffect(input.EffectType.Status, int(info.PetStatus.Sleep))
|
||||
if t != nil {
|
||||
t.NotALive()
|
||||
if a.SkillEntity.Category() != info.Category.STATUS {
|
||||
t := defender.GetEffect(input.EffectType.Status, int(info.PetStatus.Sleep))
|
||||
if t != nil {
|
||||
t.NotALive()
|
||||
}
|
||||
}
|
||||
|
||||
if attacker.AttackValue.IsCritical == 1 {
|
||||
|
||||
Reference in New Issue
Block a user