This commit is contained in:
aozhiwei 2023-04-02 14:12:12 +08:00
parent ecb2b90959
commit 4cfa4fb46e

View File

@ -3020,7 +3020,21 @@ std::shared_ptr<std::set<int>> Creature::CalcReporterList(const mt::Equip* weapo
switch (bullet_meta->_inventory_slot()) { switch (bullet_meta->_inventory_slot()) {
case IS_RPG: case IS_RPG:
{ {
float nearest_distance = FLT_MAX;
TraverseCreatures
(
[] (Creature*c, bool& stop)
{
if (!c->IsHuman()) {
return;
}
if (a8::HasBitFlag(c->status, CS_Disable)) {
return;
}
if (c->dead) {
return;
}
});
} }
break; break;
default: default: