diff options
author | ModoX <moardox@gmail.com> | 2023-08-14 00:47:08 +0200 |
---|---|---|
committer | ModoX <moardox@gmail.com> | 2023-08-14 00:48:21 +0200 |
commit | 0c9e46629c5503b8c1a81cb71b2cd06ec1284fbb (patch) | |
tree | 8538ae4451499037e4ea7b6c8a6c0399e9a88d09 | |
parent | 0b70e7d2dc0aed641e76cd9ab577ce959f663c96 (diff) |
Core/Spells: Summons with no special title and duration -1ms should use TEMPSUMMON_MANUAL_DESPAWN
-rw-r--r-- | src/server/game/Spells/SpellEffects.cpp | 6 |
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) { |