Show
Ignore:
Timestamp:
11/19/08 13:45:43 (17 years ago)
Author:
yumileroy
Message:

[svn] * Disabled the move and stay commands while pet is possessed
* Make pet come back to its owner after possession ends if it's not currently in combat
* Allow the possessed unit to properly change attack targets
* Also remove charm effects from charmed target on owner aura cancel

Original author: gvcoman
Date: 2008-11-08 23:32:15-06:00

Files:
1 modified

Legend:

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

    r174 r200  
    353353        return; 
    354354 
    355     // Remove possess aura from the possessed as well 
    356     if(_player->isPossessing()) 
     355    // Remove possess/charm aura from the possessed/charmed as well 
     356    // TODO: Remove this once the ability to cancel aura sets at once is implemented 
     357    if(_player->GetCharm()) 
    357358    { 
    358359        for (int i = 0; i < 3; ++i) 
    359360        { 
    360361            if (spellInfo->EffectApplyAuraName[i] == SPELL_AURA_MOD_POSSESS || 
    361                 spellInfo->EffectApplyAuraName[i] == SPELL_AURA_MOD_POSSESS_PET) 
     362                spellInfo->EffectApplyAuraName[i] == SPELL_AURA_MOD_POSSESS_PET || 
     363                spellInfo->EffectApplyAuraName[i] == SPELL_AURA_MOD_CHARM) 
    362364            { 
    363365                _player->RemoveAurasDueToSpellByCancel(spellId);