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:
@@ -130,9 +130,8 @@ namespace Framework.Constants
|
||||
Ally = 1,
|
||||
Pet = 2,
|
||||
Puppet = 3,
|
||||
Vehicle = 4,
|
||||
Unk = 5 // as of patch 3.3.5a only Bone Spike in Icecrown Citadel
|
||||
// uses this category
|
||||
PossessedVehicle = 4,
|
||||
Vehicle = 5 // Wild, but Ride Spell will be cast
|
||||
}
|
||||
|
||||
public enum SummonTitle
|
||||
|
||||
@@ -150,7 +150,6 @@ namespace Game.AI
|
||||
return true;
|
||||
case SummonCategory.Wild:
|
||||
case SummonCategory.Ally:
|
||||
case SummonCategory.Unk:
|
||||
if (properties.HasFlag(SummonPropertiesFlags.JoinSummonerSpawnGroup))
|
||||
return true;
|
||||
switch (properties.Title)
|
||||
|
||||
@@ -446,12 +446,12 @@ namespace Game.Entities
|
||||
case SummonCategory.Puppet:
|
||||
mask = UnitTypeMask.Puppet;
|
||||
break;
|
||||
case SummonCategory.PossessedVehicle:
|
||||
case SummonCategory.Vehicle:
|
||||
mask = UnitTypeMask.Minion;
|
||||
break;
|
||||
case SummonCategory.Wild:
|
||||
case SummonCategory.Ally:
|
||||
case SummonCategory.Unk:
|
||||
{
|
||||
switch (properties.Title)
|
||||
{
|
||||
|
||||
@@ -3711,12 +3711,12 @@ namespace Game.Maps
|
||||
case SummonCategory.Puppet:
|
||||
mask = UnitTypeMask.Puppet;
|
||||
break;
|
||||
case SummonCategory.PossessedVehicle:
|
||||
case SummonCategory.Vehicle:
|
||||
mask = UnitTypeMask.Minion;
|
||||
break;
|
||||
case SummonCategory.Wild:
|
||||
case SummonCategory.Ally:
|
||||
case SummonCategory.Unk:
|
||||
{
|
||||
switch (properties.Title)
|
||||
{
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user