aboutsummaryrefslogtreecommitdiff
path: root/src/game/Unit.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/Unit.cpp')
-rw-r--r--src/game/Unit.cpp16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
index e0fa1b0fc89..cd88d938693 100644
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -46,7 +46,6 @@
#include "GridNotifiersImpl.h"
#include "CellImpl.h"
#include "Path.h"
-#include "TemporarySummon.h"
#include <math.h>
@@ -3412,21 +3411,6 @@ void Unit::InterruptNonMeleeSpells(bool withDelayed, uint32 spell_id)
// channeled spells are interrupted if they are not finished, even if they are delayed
if (m_currentSpells[CURRENT_CHANNELED_SPELL] && (!spell_id || m_currentSpells[CURRENT_CHANNELED_SPELL]->m_spellInfo->Id==spell_id))
{
- // Unsummon any summoned as possessed creatures on channel interrupt
- SpellEntry const *spellInfo = m_currentSpells[CURRENT_CHANNELED_SPELL]->m_spellInfo;
- for (int i = 0; i < 3; i++)
- {
- if (spellInfo->Effect[i] == SPELL_EFFECT_SUMMON &&
- (spellInfo->EffectMiscValueB[i] == SUMMON_TYPE_POSESSED ||
- spellInfo->EffectMiscValueB[i] == SUMMON_TYPE_POSESSED2 ||
- spellInfo->EffectMiscValueB[i] == SUMMON_TYPE_POSESSED3))
- {
- // Possession is removed in the UnSummon function
- if (GetCharm())
- ((TemporarySummon*)GetCharm())->UnSummon();
- }
- }
-
if (m_currentSpells[CURRENT_CHANNELED_SPELL]->getState() != SPELL_STATE_FINISHED)
m_currentSpells[CURRENT_CHANNELED_SPELL]->cancel();
m_currentSpells[CURRENT_CHANNELED_SPELL]->SetReferencedFromCurrent(false);