Changeset 267 for trunk/src/game/SpellHandler.cpp
- Timestamp:
- 11/21/08 16:54:14 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/game/SpellHandler.cpp
r260 r267 369 369 spellInfo->EffectApplyAuraName[i] == SPELL_AURA_BIND_SIGHT) 370 370 { 371 // Fix me: creature may be killed during player aura cancel 371 372 _player->RemoveAurasDueToSpellByCancel(spellId); 372 373 if (_player->GetCharm()) 373 374 _player->GetCharm()->RemoveAurasDueToSpellByCancel(spellId); 374 else if (_player->GetFarsightTarget() ->GetTypeId() != TYPEID_DYNAMICOBJECT)375 else if (_player->GetFarsightTarget() && _player->GetFarsightTarget()->GetTypeId() != TYPEID_DYNAMICOBJECT) 375 376 ((Unit*)_player->GetFarsightTarget())->RemoveAurasDueToSpellByCancel(spellId); 376 377 return;