mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-10-10 09:28:06 +00:00
Fix smashables not counting towards whole team (#944)
This commit is contained in:
@@ -701,7 +701,7 @@ void DestroyableComponent::Smash(const LWOOBJID source, const eKillType killType
|
|||||||
auto* missions = owner->GetComponent<MissionComponent>();
|
auto* missions = owner->GetComponent<MissionComponent>();
|
||||||
|
|
||||||
if (missions != nullptr) {
|
if (missions != nullptr) {
|
||||||
if (team != nullptr && isEnemy) {
|
if (team != nullptr) {
|
||||||
for (const auto memberId : team->members) {
|
for (const auto memberId : team->members) {
|
||||||
auto* member = EntityManager::Instance()->GetEntity(memberId);
|
auto* member = EntityManager::Instance()->GetEntity(memberId);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user