上传捕羊大赛复活

This commit is contained in:
liwei1dao 2023-05-17 18:59:03 +08:00
parent 6f128e9379
commit eadbb9bcfe

View File

@ -298,7 +298,7 @@ func (this *Parkour) avoid(id string, uid string, dis float32) {
if dis < 0 { if dis < 0 {
member.Currhp-- member.Currhp--
if member.Currhp < 0 { if member.Currhp <= 0 {
timewheel.Add(time.Second*10, this.resurrectiontimer, battle.Id, member.Uid) timewheel.Add(time.Second*10, this.resurrectiontimer, battle.Id, member.Uid)
} }
} else { } else {
@ -691,5 +691,7 @@ func (this *Parkour) resurrectiontimer(task *timewheel.Task, args ...interface{}
this.Errorln(err) this.Errorln(err)
} }
} }
} else {
this.Error("战斗结束 复活失效", log.Field{Key: "bid", Value: battleid})
} }
} }