diff options
| author | megamage <none@none> | 2009-02-23 17:04:15 -0600 |
|---|---|---|
| committer | megamage <none@none> | 2009-02-23 17:04:15 -0600 |
| commit | 5fe7b48037c7892c24f5c2f9ea1d18c424ac85e9 (patch) | |
| tree | 0650745d74d6b63003429de0dff65632699d71f3 /src/game/Spell.cpp | |
| parent | befa36f8b91ab2a08719ff4d1df0433d9ac604b1 (diff) | |
| parent | de947abd068ad603ca202ae53ffeeefed944681f (diff) | |
*Merge.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Spell.cpp')
| -rw-r--r-- | src/game/Spell.cpp | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp index b5046a18491..aa04784fb97 100644 --- a/src/game/Spell.cpp +++ b/src/game/Spell.cpp @@ -2111,25 +2111,6 @@ void Spell::cancel() finish(false); - // Unsummon summon as possessed creatures on spell cancel - if(m_caster->GetTypeId() == TYPEID_PLAYER) - { - for(int i = 0; i < 3; ++i) - { - if(m_spellInfo->Effect[i] == SPELL_EFFECT_SUMMON && - (m_spellInfo->EffectMiscValueB[i] == SUMMON_TYPE_POSESSED || - m_spellInfo->EffectMiscValueB[i] == SUMMON_TYPE_POSESSED2 || - m_spellInfo->EffectMiscValueB[i] == SUMMON_TYPE_POSESSED3)) - { - ((Player*)m_caster)->StopCastingCharm(); - break; - // Possession is removed in the UnSummon function - //if (m_caster->GetCharm()) - // ((TemporarySummon*)m_caster->GetCharm())->UnSummon(); - } - } - } - m_caster->RemoveDynObject(m_spellInfo->Id); m_caster->RemoveGameObject(m_spellInfo->Id,true); } |
