Update Turn.go

This commit is contained in:
2025-09-03 03:29:25 +08:00
committed by GitHub
parent afdf015d62
commit 6bc0f6b0db

View File

@@ -14,12 +14,12 @@ func (this *EffectNode) OnTurnStart() bool {
// 回合结束一次性effect清楚掉
func (this *EffectNode) TurnEnd() bool {
this.duration--
if this.duration != 0 { // 保留 (负数表示永久)
this.GetBattle().Effects[this.GetInput().UserID].AddEffect(this) //重新添加buff到上下文
}
this.duration--
return true
}