优化秘境系统

This commit is contained in:
liwei1dao 2022-12-22 20:26:30 +08:00
parent 741ee32061
commit c0e41abefc

View File

@ -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(),