Core/Summons: Handle summons using SummonProperties.Control type 5 as vehicles

Port From (https://github.com/TrinityCore/TrinityCore/commit/23bb1a56b74191e131e41ad25edbe40ee4e76a96)
This commit is contained in:
Hondacrx
2024-11-17 12:09:17 -05:00
parent b30fb05495
commit ba80dede79
5 changed files with 5 additions and 7 deletions
+1 -1
View File
@@ -1512,7 +1512,6 @@ namespace Game.Spells
{
case SummonCategory.Wild:
case SummonCategory.Ally:
case SummonCategory.Unk:
if (properties.HasFlag(SummonPropertiesFlags.JoinSummonerSpawnGroup))
{
SummonGuardian(effectInfo, entry, properties, numSummons, privateObjectOwner);
@@ -1614,6 +1613,7 @@ namespace Game.Spells
summon = unitCaster.GetMap().SummonCreature(entry, destTarget, properties, duration, unitCaster, m_spellInfo.Id, 0, privateObjectOwner);
break;
}
case SummonCategory.PossessedVehicle:
case SummonCategory.Vehicle:
{
if (unitCaster == null)