This commit is contained in:
aozhiwei 2024-08-29 19:32:28 +08:00
parent b5d13dcb6c
commit c8cf48e45c

View File

@ -704,7 +704,14 @@ void Incubator::StartNewBattleMode()
std::shuffle(invisable_humans.begin(),
invisable_humans.end(),
std::default_random_engine(a8::XGetTickCount()));
Human *killer = nullptr;
Human *target = invisable_humans.at(0);
for (size_t i = 0; i < invisable_humans.size(); ++i) {
if (invisable_humans.at(i)->GetTeam() != target->GetTeam()) {
killer = invisable_humans.at(i);
break;
}
}
}
}
},