挑战次数问题
This commit is contained in:
parent
9fdc8d9264
commit
9209f23b14
@ -36,7 +36,7 @@ func (this *apiComp) Challenge(session comm.IUserSession, req *pb.HuntingChallen
|
||||
code = pb.ErrorCode_PagodaNotFound
|
||||
return
|
||||
}
|
||||
if hunting.ChallengeCount+hunting.BuyCount > this.module.configure.GetGlobalConf().HuntingNum {
|
||||
if hunting.ChallengeCount > this.module.configure.GetGlobalConf().HuntingNum+hunting.BuyCount {
|
||||
code = pb.ErrorCode_HuntingMaxChallengeCount
|
||||
return
|
||||
}
|
||||
|
@ -37,7 +37,7 @@ func (this *apiComp) Challenge(session comm.IUserSession, req *pb.VikingChalleng
|
||||
return
|
||||
}
|
||||
|
||||
if viking.ChallengeCount+viking.BuyCount > this.module.configure.GetGlobalConf().VikingNum {
|
||||
if viking.ChallengeCount > this.module.configure.GetGlobalConf().VikingNum+viking.BuyCount {
|
||||
code = pb.ErrorCode_VikingMaxChallengeCount
|
||||
return
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user