Show
Ignore:
Timestamp:
11/22/08 01:55:20 (17 years ago)
Author:
yumileroy
Message:

Merge with 284 (54b0e67d97fe).

Original author: megamage
Date: 2008-11-21 19:49:54-06:00

Files:
1 modified

Legend:

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

    r283 r284  
    3434#include "ScriptCalls.h" 
    3535#include "Totem.h" 
     36#include "TemporarySummon.h" 
    3637 
    3738void WorldSession::HandleUseItemOpcode(WorldPacket& recvPacket) 
     
    377378                return; 
    378379            } 
     380            else if (spellInfo->Effect[i] == SPELL_EFFECT_SUMMON &&  
     381                (spellInfo->EffectMiscValueB[i] == SUMMON_TYPE_POSESSED ||  
     382                 spellInfo->EffectMiscValueB[i] == SUMMON_TYPE_POSESSED2 ||  
     383                 spellInfo->EffectMiscValueB[i] == SUMMON_TYPE_POSESSED3)) 
     384            { 
     385                // Possession is removed in the UnSummon function 
     386                ((TemporarySummon*)_player->GetCharm())->UnSummon(); 
     387            } 
    379388        } 
    380389    }