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