diff --git a/server/gameserver/human.cc b/server/gameserver/human.cc index 7285eda9..1cea537f 100644 --- a/server/gameserver/human.cc +++ b/server/gameserver/human.cc @@ -1417,6 +1417,10 @@ void Human::DeadDrop() void Human::SendBattleReport() { + if (room->GetBattleStartFrameNo() <= 0) { + return; + } + std::shared_ptr params = a8::MutableXObject::CreateObject(); GenBattleReportData(params.get()); std::string url; @@ -3786,6 +3790,9 @@ void Human::SendPersonalBattleReport() if (room->IsPveRoom()) { return; } + if (room->GetBattleStartFrameNo() <= 0) { + return; + } std::shared_ptr params = a8::MutableXObject::CreateObject(); { params->SetVal("account_id", account_id); diff --git a/server/gameserver/pbutils.cc b/server/gameserver/pbutils.cc index 586ae654..00b90d85 100644 --- a/server/gameserver/pbutils.cc +++ b/server/gameserver/pbutils.cc @@ -1620,6 +1620,9 @@ void Human::SendBattleSettlement() if (!IsPlayer()) { return; } + if (room->GetBattleStartFrameNo() <= 0) { + return; + } Player* p = (Player*)this; std::shared_ptr params = a8::MutableXObject::CreateObject(); { diff --git a/server/gameserver/team.cc b/server/gameserver/team.cc index 9b1123ce..f9958a41 100644 --- a/server/gameserver/team.cc +++ b/server/gameserver/team.cc @@ -216,7 +216,9 @@ void Team::SendTeamBattleReport(Human* sender) if (AllIsRunAway()) { return; } - + if (room->GetBattleStartFrameNo() <= 0) { + return; + } std::shared_ptr post_data = a8::MutableXObject::CreateObject(); GenBattleReportData(player, post_data.get()); std::string url;