挑战次数问题
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
|
code = pb.ErrorCode_PagodaNotFound
|
||||||
return
|
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
|
code = pb.ErrorCode_HuntingMaxChallengeCount
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
@ -37,7 +37,7 @@ func (this *apiComp) Challenge(session comm.IUserSession, req *pb.VikingChalleng
|
|||||||
return
|
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
|
code = pb.ErrorCode_VikingMaxChallengeCount
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user