diff --git a/server/gameserver/incubator.cc b/server/gameserver/incubator.cc index 75cb6385..63c6c284 100644 --- a/server/gameserver/incubator.cc +++ b/server/gameserver/incubator.cc @@ -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; + } + } } } },