Core/Summons: Handle summons using SummonProperties.Control type 5 as vehicles (#30391)

This commit is contained in:
Meji
2024-11-05 14:42:35 +01:00
committed by GitHub
parent c68f4ceeb5
commit 23bb1a56b7
5 changed files with 9 additions and 11 deletions

View File

@@ -1896,7 +1896,6 @@ void Spell::EffectSummonType()
{
case SUMMON_CATEGORY_WILD:
case SUMMON_CATEGORY_ALLY:
case SUMMON_CATEGORY_UNK:
{
if (properties->GetFlags().HasFlag(SummonPropertiesFlags::JoinSummonerSpawnGroup))
{
@@ -2000,6 +1999,7 @@ void Spell::EffectSummonType()
summon = unitCaster->GetMap()->SummonCreature(entry, *destTarget, properties, duration, unitCaster, m_spellInfo->Id, 0, privateObjectOwner);
break;
}
case SUMMON_CATEGORY_POSSESSED_VEHICLE:
case SUMMON_CATEGORY_VEHICLE:
{
if (!unitCaster)