Changeset 174 for trunk/src/game/SpellHandler.cpp
- Timestamp:
- 11/19/08 13:43:15 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/game/SpellHandler.cpp
r102 r174 303 303 } 304 304 305 // can't use our own spells when we're in possession of another unit, 306 if(_player->isPossessing()) 307 return; 308 305 309 // client provided targets 306 310 SpellCastTargets targets; … … 348 352 if (!spellInfo) 349 353 return; 354 355 // Remove possess aura from the possessed as well 356 if(_player->isPossessing()) 357 { 358 for (int i = 0; i < 3; ++i) 359 { 360 if (spellInfo->EffectApplyAuraName[i] == SPELL_AURA_MOD_POSSESS || 361 spellInfo->EffectApplyAuraName[i] == SPELL_AURA_MOD_POSSESS_PET) 362 { 363 _player->RemoveAurasDueToSpellByCancel(spellId); 364 _player->GetCharm()->RemoveAurasDueToSpellByCancel(spellId); 365 return; 366 } 367 } 368 } 350 369 351 370 // not allow remove non positive spells and spells with attr SPELL_ATTR_CANT_CANCEL