Changeset 285 for trunk/src/game/Unit.cpp
- Timestamp:
- 11/22/08 02:05:14 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/game/Unit.cpp
r284 r285 47 47 #include "CellImpl.h" 48 48 #include "Path.h" 49 #include "TemporarySummon.h"50 49 51 50 #include <math.h> … … 3413 3412 if (m_currentSpells[CURRENT_CHANNELED_SPELL] && (!spell_id || m_currentSpells[CURRENT_CHANNELED_SPELL]->m_spellInfo->Id==spell_id)) 3414 3413 { 3415 // Unsummon any summoned as possessed creatures on channel interrupt3416 SpellEntry const *spellInfo = m_currentSpells[CURRENT_CHANNELED_SPELL]->m_spellInfo;3417 for (int i = 0; i < 3; i++)3418 {3419 if (spellInfo->Effect[i] == SPELL_EFFECT_SUMMON &&3420 (spellInfo->EffectMiscValueB[i] == SUMMON_TYPE_POSESSED ||3421 spellInfo->EffectMiscValueB[i] == SUMMON_TYPE_POSESSED2 ||3422 spellInfo->EffectMiscValueB[i] == SUMMON_TYPE_POSESSED3))3423 {3424 // Possession is removed in the UnSummon function3425 if (GetCharm())3426 ((TemporarySummon*)GetCharm())->UnSummon();3427 }3428 }3429 3430 3414 if (m_currentSpells[CURRENT_CHANNELED_SPELL]->getState() != SPELL_STATE_FINISHED) 3431 3415 m_currentSpells[CURRENT_CHANNELED_SPELL]->cancel();