From a531a99ff3fadbc4a446a856c609d63662123b53 Mon Sep 17 00:00:00 2001 From: hondacrx Date: Thu, 14 Sep 2023 02:56:28 -0400 Subject: [PATCH] Core/Spells: Summons with no special title and duration -1ms should use TEMPSUMMON_MANUAL_DESPAWN Port From (https://github.com/TrinityCore/TrinityCore/commit/0c9e46629c5503b8c1a81cb71b2cd06ec1284fbb) --- Source/Game/Spells/SpellEffects.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Source/Game/Spells/SpellEffects.cs b/Source/Game/Spells/SpellEffects.cs index 3fbe3b68d..14683ec11 100644 --- a/Source/Game/Spells/SpellEffects.cs +++ b/Source/Game/Spells/SpellEffects.cs @@ -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) {