This commit is contained in:
aozhiwei 2022-08-22 19:46:57 +08:00
parent 84a84c76d8
commit 5afc890c58

View File

@ -249,17 +249,17 @@ void Incubator::SpawnWaveMon(int wave)
if (wave >= room->pve_mode_meta->waves.size()) {
abort();
}
if (room->pve_data.refreshed_mon > 0 &&
room->pve_data.mon_num <= 0) {
timeout_ = true;
return;
}
if (wave > 0 && room->IsDestoryRoom()) {
return;
}
if (room->IsGameOver()) {
return;
}
if (room->pve_data.refreshed_mon > 0 &&
room->pve_data.mon_num <= 0) {
timeout_ = true;
return;
}
auto& mons = room->pve_mode_meta->waves[wave];
for (MetaData::PveGeminiContent* content : mons) {
room->xtimer.AddDeadLineTimerAndAttach