This commit is contained in:
aozhiwei 2023-12-29 15:31:47 +08:00
parent 7bff245fcb
commit 69cc232be0

View File

@ -1613,6 +1613,15 @@ void Human::SendUIUpdate()
notifymsg.set_boss_state(room->pve_data.boss_state);
}
if (room->IsMobaModeRoom()) {
if (room->GetMobaTeamA()) {
notifymsg.set_a_team_id(room->GetMobaTeamA()->GetTeamId());
notifymsg.set_a_kill_count(room->GetMobaTeamA()->GetKillCount());
}
if (room->GetMobaTeamB()) {
notifymsg.set_b_team_id(room->GetMobaTeamB()->GetTeamId());
notifymsg.set_b_kill_count(room->GetMobaTeamB()->GetKillCount());
}
#if 0
if (GetTeam()->GetTeamId() == room->GetMobaTeamA()->GetTeamId()) {
if (room->GetMobaTeamA()) {
notifymsg.set_a_team_id(room->GetMobaTeamA()->GetTeamId());
@ -1632,6 +1641,7 @@ void Human::SendUIUpdate()
notifymsg.set_a_kill_count(room->GetMobaTeamB()->GetKillCount());
}
}
#endif
}
SendNotifyMsg(notifymsg);
}