From eadbb9bcfef62ab6d76d893e32a078b67a97d5c3 Mon Sep 17 00:00:00 2001 From: liwei1dao Date: Wed, 17 May 2023 18:59:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E6=8D=95=E7=BE=8A=E5=A4=A7?= =?UTF-8?q?=E8=B5=9B=E5=A4=8D=E6=B4=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/parkour/module.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/parkour/module.go b/modules/parkour/module.go index bc51efeb6..abf297800 100644 --- a/modules/parkour/module.go +++ b/modules/parkour/module.go @@ -298,7 +298,7 @@ func (this *Parkour) avoid(id string, uid string, dis float32) { if dis < 0 { member.Currhp-- - if member.Currhp < 0 { + if member.Currhp <= 0 { timewheel.Add(time.Second*10, this.resurrectiontimer, battle.Id, member.Uid) } } else { @@ -691,5 +691,7 @@ func (this *Parkour) resurrectiontimer(task *timewheel.Task, args ...interface{} this.Errorln(err) } } + } else { + this.Error("战斗结束 复活失效", log.Field{Key: "bid", Value: battleid}) } }