diff --git a/server/matchserver/common/types.go b/server/matchserver/common/types.go index f1540b1a..10a67f7d 100644 --- a/server/matchserver/common/types.go +++ b/server/matchserver/common/types.go @@ -149,6 +149,7 @@ type Player interface { SetSortIdx(int32) IsBattling() bool SetBattling(bool) + HasLuckySymbol() int32 GenNextCopy() Player GetBattleItems() []*BattleItem } diff --git a/server/matchserver/player/player.go b/server/matchserver/player/player.go index 14c6dfb3..cdf2ab7d 100644 --- a/server/matchserver/player/player.go +++ b/server/matchserver/player/player.go @@ -188,6 +188,10 @@ func (this *player) SetSortIdx(sortIdx int32) { this.sortIdx = sortIdx } +func (this *player) HasLuckySymbol() int32 { + return this.hasLuckySymbol +} + func (this *player) GenNextCopy() common.Player { nextCopy := newPlayer() //nextCopy.socket diff --git a/server/matchserver/team/team.go b/server/matchserver/team/team.go index 572e4d81..838f2ce6 100644 --- a/server/matchserver/team/team.go +++ b/server/matchserver/team/team.go @@ -385,6 +385,7 @@ func (this *team) genStartGameInfo() { HeroUniId string `json:"hero_uniid"` IsAndroid int32 `json:"is_android"` RobotId int32 `json:"robot_id"` + HasLuckySymbol int32 `json:"has_lucky_symbol"` BattleItems []*common.BattleItem `json:"battle_items"` } `json:"members"` } `json:"team_list"` @@ -437,6 +438,7 @@ func (this *team) genStartGameInfo() { ele2.AccountId = m.GetAccountId() ele2.SpecSkill = m.GetSpecSkill() ele2.HeroUniId = m.GetHeroUniid() + ele2.HasLuckySymbol = m.HasLuckySymbol() ele2.BattleItems = m.GetBattleItems() GetHistoryMgr().AddBattle(m.GetAccountId(), this.mapInfo.MapId,