Show
Ignore:
Timestamp:
11/22/08 02:05:14 (17 years ago)
Author:
yumileroy
Message:

* 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

Original author: gvcoman
Date: 2008-11-21 21:00:45-05:00

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/game/Spell.cpp

    r284 r285  
    4949#include "BattleGround.h" 
    5050#include "Util.h" 
     51#include "TemporarySummon.h" 
    5152 
    5253#define SPELL_CHANNEL_UPDATE_INTERVAL 1000 
     
    21882189    } 
    21892190 
     2191    // Unsummon summon as possessed creatures on spell cancel 
     2192    for (int i = 0; i < 3; i++) 
     2193    { 
     2194        if (m_spellInfo->Effect[i] == SPELL_EFFECT_SUMMON &&  
     2195            (m_spellInfo->EffectMiscValueB[i] == SUMMON_TYPE_POSESSED ||  
     2196             m_spellInfo->EffectMiscValueB[i] == SUMMON_TYPE_POSESSED2 ||  
     2197             m_spellInfo->EffectMiscValueB[i] == SUMMON_TYPE_POSESSED3)) 
     2198        { 
     2199            // Possession is removed in the UnSummon function 
     2200            if (m_caster->GetCharm()) 
     2201                ((TemporarySummon*)m_caster->GetCharm())->UnSummon();  
     2202        } 
     2203    } 
     2204 
    21902205    finish(false); 
    21912206    m_caster->RemoveDynObject(m_spellInfo->Id);