"fix(fight): 优化效果恢复逻辑,增加持续时间检查并修复回合结束效果递减"
This commit is contained in:
@@ -108,13 +108,16 @@ func (our *Input) RecoverEffect() {
|
||||
|
||||
//根本没释放技能,这些效果全部失效
|
||||
for _, e := range our.EffectCache {
|
||||
|
||||
e.Alive(false)
|
||||
|
||||
}
|
||||
|
||||
//这时候将被覆盖的效果全部装回来enterturn
|
||||
for _, e := range our.Effect_Lost {
|
||||
e.Alive(true)
|
||||
if e.Duration() > 0 || e.Duration() == -1 {
|
||||
e.Alive(true)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -31,8 +31,11 @@ func (e *EffectNode) Turn_End() {
|
||||
// // e.Alive(true)
|
||||
// }
|
||||
|
||||
if e.duration > 0 {
|
||||
e.duration--
|
||||
}
|
||||
// })
|
||||
e.duration--
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user