This commit is contained in:
@@ -64,8 +64,18 @@ func (h Controller) GetMapPlayerList(data *space.ListMapPlayerInboundInfo, c *pl
|
||||
result = &info.ListMapPlayerOutboundInfo{
|
||||
Player: c.GetSpace().GetInfo(c),
|
||||
}
|
||||
c.SendPackCmd(2003, result)
|
||||
if atomic.LoadUint32(&c.GetSpace().TimeBoss.Flag) == 1 {
|
||||
c.SendPackCmd(2022, &c.GetSpace().TimeBoss)
|
||||
}
|
||||
if c.GetSpace().MapBossInfo.Pos != 200 {
|
||||
var t info.MapBossSInfo
|
||||
t.INFO = append(t.INFO, c.GetSpace().MapBossInfo)
|
||||
c.SendPackCmd(2021, &t)
|
||||
|
||||
return
|
||||
}
|
||||
c.SendPackCmd(50004, &info.S2C_50004{Id: uint32(c.GetSpace().Weather)}) //获取天气
|
||||
return nil, -1
|
||||
}
|
||||
func (h Controller) AttackBoss(data *space.AttackBossInboundInfo, c *player.Player) (result *fight.NullOutboundInfo, err errorcode.ErrorCode) { //这个时候player应该是空的
|
||||
|
||||
|
||||
Reference in New Issue
Block a user