优化秘境系统
This commit is contained in:
parent
741ee32061
commit
c0e41abefc
@ -93,7 +93,14 @@ func (this *Moonfantasy) Trigger(session comm.IUserSession, source *pb.BattleRep
|
||||
n, _ := rand.Int(rand.Reader, big.NewInt(1000))
|
||||
if int32(n.Int64()) < triggerData.DreamlandPro {
|
||||
if this.IsCross() {
|
||||
this.modelDream.trigger(session)
|
||||
go func(uid string) {
|
||||
ss, _ := this.GetUserSession(uid)
|
||||
this.modelDream.trigger(ss)
|
||||
if err = ss.Push(); err != nil {
|
||||
this.Errorln(err)
|
||||
}
|
||||
}(session.GetUserId())
|
||||
|
||||
} else {
|
||||
if _, err = this.service.AcrossClusterRpcGo(context.Background(),
|
||||
this.GetCrossTag(),
|
||||
|
Loading…
Reference in New Issue
Block a user