模拟抽 不发广播
This commit is contained in:
parent
4ac8305803
commit
cfc00efb34
@ -287,13 +287,6 @@ func (this *apiComp) DrawCard(session comm.IUserSession, req *pb.HeroDrawCardReq
|
|||||||
if req.DrawType == 1 {
|
if req.DrawType == 1 {
|
||||||
|
|
||||||
if hero, atno, err = this.module.modelHero.imitateHero(session, heroId); err == nil {
|
if hero, atno, err = this.module.modelHero.imitateHero(session, heroId); err == nil {
|
||||||
for _, v := range atno {
|
|
||||||
if v.A == "hero" && v.T == heroId && v.N == 1 {
|
|
||||||
if user, err := this.module.ModuleUser.GetUser(session.GetUserId()); err == nil { // 广播 首次获得英雄
|
|
||||||
this.chat.SendSysChatToWorld(comm.ChatSystem13, hero, HeroConf.Star, 0, user.Name, v.T)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
rsp.Data = append(rsp.Data, &pb.AtnoData{Atno: atno})
|
rsp.Data = append(rsp.Data, &pb.AtnoData{Atno: atno})
|
||||||
} else {
|
} else {
|
||||||
errdata = &pb.ErrorData{
|
errdata = &pb.ErrorData{
|
||||||
|
Loading…
Reference in New Issue
Block a user