mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-25 23:17:28 +00:00
Merge pull request #577 Address issue with some kills not contributing towards progress
Address issue with player spawned abilities not getting team
This commit is contained in:
commit
c5dff54e01
@ -696,10 +696,10 @@ void DestroyableComponent::Smash(const LWOOBJID source, const eKillType killType
|
|||||||
|
|
||||||
if (owner != nullptr)
|
if (owner != nullptr)
|
||||||
{
|
{
|
||||||
auto* team = TeamManager::Instance()->GetTeam(owner->GetObjectID());
|
|
||||||
|
|
||||||
owner = owner->GetOwner(); // If the owner is overwritten, we collect that here
|
owner = owner->GetOwner(); // If the owner is overwritten, we collect that here
|
||||||
|
|
||||||
|
auto* team = TeamManager::Instance()->GetTeam(owner->GetObjectID());
|
||||||
|
|
||||||
const auto isEnemy = m_Parent->GetComponent<BaseCombatAIComponent>() != nullptr;
|
const auto isEnemy = m_Parent->GetComponent<BaseCombatAIComponent>() != nullptr;
|
||||||
|
|
||||||
auto* inventoryComponent = owner->GetComponent<InventoryComponent>();
|
auto* inventoryComponent = owner->GetComponent<InventoryComponent>();
|
||||||
|
Loading…
Reference in New Issue
Block a user