diff --git a/dScripts/02_server/Map/General/ExplodingAsset.cpp b/dScripts/02_server/Map/General/ExplodingAsset.cpp index 54ae4207..e073fffd 100644 --- a/dScripts/02_server/Map/General/ExplodingAsset.cpp +++ b/dScripts/02_server/Map/General/ExplodingAsset.cpp @@ -47,13 +47,8 @@ void ExplodingAsset::OnHit(Entity* self, Entity* attacker) { if (!proximityComponent) return; if (!self->GetBoolean(u"bIsHit")) { - for (const auto objID : proximityComponent->GetProximityObjects("crateHitters")) { - auto* const entity = Game::entityManager->GetEntity(objID); - if (!entity || !entity->IsPlayer()) continue; - - auto* const destroyable = entity->GetComponent(); - if (destroyable) destroyable->Smash(attacker->GetObjectID()); - } + auto* const destroyable = attacker->GetComponent(); + if (destroyable) destroyable->Smash(attacker->GetObjectID()); } attacker = attacker->GetOwner();