From 6bc0f6b0db05e8907a5e8f7bd29113f6be97aaf8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=94=E5=BF=B5?= <1@72wo.cn> Date: Wed, 3 Sep 2025 03:29:25 +0800 Subject: [PATCH] Update Turn.go --- logic/service/fight/battle/node/Turn.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/logic/service/fight/battle/node/Turn.go b/logic/service/fight/battle/node/Turn.go index 05d4f3eb..4887083d 100644 --- a/logic/service/fight/battle/node/Turn.go +++ b/logic/service/fight/battle/node/Turn.go @@ -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 }