This commit is contained in:
aozhiwei 2024-09-20 15:11:11 +08:00
parent c2f2684c3d
commit 6b85d6913a
2 changed files with 8 additions and 0 deletions

View File

@ -32,6 +32,10 @@ func GetTeamMgr() common.TeamMgr {
return teamMgr
}
func GetHistoryMgr() common.HistoryMgr {
return historyMgr
}
func GetWspListener() common.WspListener {
return wspListener
}

View File

@ -7,6 +7,7 @@ import (
"main/mt"
"main/common"
"main/constant"
. "main/global"
"fmt"
"sort"
@ -427,6 +428,9 @@ func (this *team) genStartGameInfo() {
ele2.AccountId = m.GetAccountId()
ele2.SpecSkill = m.GetSpecSkill()
ele2.HeroUniId = m.GetHeroUniid()
GetHistoryMgr().AddBattle(m.GetAccountId(),
this.mapInfo.MapId,
q5.SafeToInt32(this.mapInfo.ModeId))
}
if this.IsMobaMode() {
robotIdx := 0