"fix(fight): 优化效果恢复逻辑,增加持续时间检查并修复回合结束效果递减"

This commit is contained in:
1
2025-12-18 07:19:38 +00:00
parent 1f9a4960ce
commit def1808590
2 changed files with 8 additions and 2 deletions

View File

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

View File

@@ -31,8 +31,11 @@ func (e *EffectNode) Turn_End() {
// // e.Alive(true)
// }
if e.duration > 0 {
e.duration--
}
// })
e.duration--
}
}