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:
@@ -1569,7 +1569,11 @@ namespace Game.Spells
|
|||||||
{
|
{
|
||||||
float radius = effectInfo.CalcRadius();
|
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)
|
for (uint count = 0; count < numSummons; ++count)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user