Core/Units: summoned vehicles will now also get a creator guid

This commit is contained in:
Ovahlord
2020-04-28 17:47:21 +02:00
parent 92f8340da3
commit 2edba50bcd

View File

@@ -194,7 +194,7 @@ void TempSummon::InitStats(uint32 duration)
owner->m_SummonSlot[slot] = GetGUID();
}
if (m_Properties->Control == SUMMON_CATEGORY_ALLY || m_Properties->Control == SUMMON_CATEGORY_PET)
if (m_Properties->Control == SUMMON_CATEGORY_ALLY || m_Properties->Control == SUMMON_CATEGORY_PET || m_Properties->Control == SUMMON_CATEGORY_VEHICLE)
{
if (!m_Properties->Faction)
SetFaction(owner->GetFaction());