1
This commit is contained in:
parent
84a84c76d8
commit
5afc890c58
@ -249,17 +249,17 @@ void Incubator::SpawnWaveMon(int wave)
|
|||||||
if (wave >= room->pve_mode_meta->waves.size()) {
|
if (wave >= room->pve_mode_meta->waves.size()) {
|
||||||
abort();
|
abort();
|
||||||
}
|
}
|
||||||
|
if (room->pve_data.refreshed_mon > 0 &&
|
||||||
|
room->pve_data.mon_num <= 0) {
|
||||||
|
timeout_ = true;
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (wave > 0 && room->IsDestoryRoom()) {
|
if (wave > 0 && room->IsDestoryRoom()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (room->IsGameOver()) {
|
if (room->IsGameOver()) {
|
||||||
return;
|
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];
|
auto& mons = room->pve_mode_meta->waves[wave];
|
||||||
for (MetaData::PveGeminiContent* content : mons) {
|
for (MetaData::PveGeminiContent* content : mons) {
|
||||||
room->xtimer.AddDeadLineTimerAndAttach
|
room->xtimer.AddDeadLineTimerAndAttach
|
||||||
|
Loading…
x
Reference in New Issue
Block a user