This commit is contained in:
aozhiwei 2023-10-25 13:19:46 +08:00
parent be3bc185fc
commit 6c9e958253
2 changed files with 15 additions and 1 deletions

View File

@ -1498,11 +1498,23 @@ void Room::UpdateGasInactiveMoba()
gas_data_.rad_new = gas_data_.new_area_meta->rad();
gas_data_.gas_progress = 0;
}
TraverseHumanList
(
[] (Human* hum) -> bool
{
hum->RemoveBuffByEffectId(kBET_ThroughWall);
hum->OnLand();
if (hum->GetEntitySubType() == EST_Player) {
GameLog::Instance()->GameStart((Player*)hum);
}
return true;
});
NotifyUiUpdate();
ClearPostBattleAutoFreeList();
OnBattleStart();
NotifyGameStart();
InitAndroidAI();
sand_table_->OnGameStart();
}
}

View File

@ -829,7 +829,9 @@ void RoomMgr::AdjustCMJoin(cs::CMJoin* msg)
msg->set_pve_instance_id(0);
#ifdef DEBUG
if (!f8::IsTestEnv()) {
msg->set_room_mode(kMobaMode);
if (App::Instance()->instance_id == 6) {
msg->set_room_mode(kMobaMode);
}
return;
}
#endif