aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/server/game/Spells/SpellEffects.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/server/game/Spells/SpellEffects.cpp b/src/server/game/Spells/SpellEffects.cpp
index 991488da305..c60832f784c 100644
--- a/src/server/game/Spells/SpellEffects.cpp
+++ b/src/server/game/Spells/SpellEffects.cpp
@@ -1933,7 +1933,11 @@ void Spell::EffectSummonType()
{
float radius = effectInfo->CalcRadius();
- TempSummonType summonType = (duration == 0ms) ? TEMPSUMMON_DEAD_DESPAWN : TEMPSUMMON_TIMED_DESPAWN;
+ TempSummonType summonType = TEMPSUMMON_TIMED_DESPAWN;
+ if (duration == 0ms)
+ summonType = TEMPSUMMON_DEAD_DESPAWN;
+ else if (duration == -1ms)
+ summonType = TEMPSUMMON_MANUAL_DESPAWN;
for (uint32 count = 0; count < numSummons; ++count)
{