Show
Ignore:
Timestamp:
11/22/08 00:35:49 (17 years ago)
Author:
yumileroy
Message:

* Implemented new summon possessed summon type for spell 49352.
* Unsummon all summon possessed units on summoning aura cancel.

Original author: gvcoman
Date: 2008-11-17 18:57:16-05:00

Files:
1 modified

Legend:

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

    r272 r274  
    3434#include "ScriptCalls.h" 
    3535#include "Totem.h" 
     36#include "TemporarySummon.h" 
    3637 
    3738void WorldSession::HandleUseItemOpcode(WorldPacket& recvPacket) 
     
    371372                return; 
    372373            } 
     374            else if (spellInfo->Effect[i] == SPELL_EFFECT_SUMMON &&  
     375                (spellInfo->EffectMiscValueB[i] == SUMMON_TYPE_POSESSED ||  
     376                 spellInfo->EffectMiscValueB[i] == SUMMON_TYPE_POSESSED2 ||  
     377                 spellInfo->EffectMiscValueB[i] == SUMMON_TYPE_POSESSED3)) 
     378            { 
     379                // Possession is removed in the UnSummon function 
     380                ((TemporarySummon*)caster->GetCharm())->UnSummon(); 
     381            } 
    373382        } 
    374383    }