This commit is contained in:
meixiongfeng 2023-05-17 19:50:16 +08:00
commit aaaa9f56db

View File

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