aboutsummaryrefslogtreecommitdiff
path: root/src/game/Unit.cpp
diff options
context:
space:
mode:
authorgvcoman <none@none>2008-11-21 21:00:45 -0500
committergvcoman <none@none>2008-11-21 21:00:45 -0500
commit063208485700904ebb6a3a77803b9c91d692daf8 (patch)
tree78020748dca9201a1eb735527df51b4d5da927f7 /src/game/Unit.cpp
parent32485bc5d1bbde8f4b5e81d718f0fc0119442294 (diff)
* Added missing part of mangos merge on interrupt channeling on aura cancel
* Removed hacks attempting to do the above only for possessing or farsight spells * Moved summon as possessed unsummoning into more general area in Spell::cancel * Added SQL updates for steam tonk and tonk mine scripts --HG-- branch : trunk
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);