Core/Spells: Summons with no special title and duration -1ms should use TEMPSUMMON_MANUAL_DESPAWN

Port From (https://github.com/TrinityCore/TrinityCore/commit/0c9e46629c5503b8c1a81cb71b2cd06ec1284fbb)
This commit is contained in:
hondacrx
2023-09-14 02:56:28 -04:00
parent dca7931fa2
commit a531a99ff3
+5 -1
View File
@@ -1569,7 +1569,11 @@ namespace Game.Spells
{
float radius = effectInfo.CalcRadius();
TempSummonType summonType = (duration == TimeSpan.Zero) ? TempSummonType.DeadDespawn : TempSummonType.TimedDespawn;
TempSummonType summonType = TempSummonType.TimedDespawn;
if (duration == TimeSpan.Zero)
summonType = TempSummonType.DeadDespawn;
else if (duration == TimeSpan.FromMilliseconds(-1))
summonType = TempSummonType.ManualDespawn;
for (uint count = 0; count < numSummons; ++count)
{