上传捕羊大赛复活
This commit is contained in:
parent
6f128e9379
commit
eadbb9bcfe
@ -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})
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user