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/Unit.cpp

    r284 r285  
    4747#include "CellImpl.h" 
    4848#include "Path.h" 
    49 #include "TemporarySummon.h" 
    5049 
    5150#include <math.h> 
     
    34133412    if (m_currentSpells[CURRENT_CHANNELED_SPELL] && (!spell_id || m_currentSpells[CURRENT_CHANNELED_SPELL]->m_spellInfo->Id==spell_id)) 
    34143413    { 
    3415         // Unsummon any summoned as possessed creatures on channel interrupt 
    3416         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 function 
    3425                 if (GetCharm()) 
    3426                     ((TemporarySummon*)GetCharm())->UnSummon();  
    3427             } 
    3428         } 
    3429  
    34303414        if (m_currentSpells[CURRENT_CHANNELED_SPELL]->getState() != SPELL_STATE_FINISHED) 
    34313415            m_currentSpells[CURRENT_CHANNELED_SPELL]->cancel();