From 40fef36530c256871a4f59f106cfae28fe824e70 Mon Sep 17 00:00:00 2001 From: David Markowitz <39972741+EmosewaMC@users.noreply.github.com> Date: Sat, 13 Dec 2025 22:00:58 -0800 Subject: [PATCH] fix: coins dropping on killer (#1948) tested that when a player dies the coins spawn on their body instead --- dGame/dComponents/DestroyableComponent.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/dGame/dComponents/DestroyableComponent.cpp b/dGame/dComponents/DestroyableComponent.cpp index 86969c5a..0f886d84 100644 --- a/dGame/dComponents/DestroyableComponent.cpp +++ b/dGame/dComponents/DestroyableComponent.cpp @@ -755,7 +755,7 @@ void DestroyableComponent::Smash(const LWOOBJID source, const eKillType killType const auto isPlayer = m_Parent->IsPlayer(); - GameMessages::SendDie(m_Parent, source, source, true, killType, deathType, 0, 0, 0, isPlayer, false, 1); + GameMessages::SendDie(m_Parent, source, source, true, killType, deathType, 0, 0, 0, isPlayer, true, 1); //NANI?! if (!isPlayer) { @@ -785,8 +785,7 @@ void DestroyableComponent::Smash(const LWOOBJID source, const eKillType killType lootMsg.sourceID = source; lootMsg.item = LOT_NULL; lootMsg.Send(); - lootMsg.Send(m_Parent->GetSystemAddress()); - character->SetCoins(coinsTotal, eLootSourceType::PICKUP); + character->SetCoins(coinsTotal, eLootSourceType::DELETION); } }