For check allowed in dead state auras apply use IsDeathPersistentSpell instead hack code.

This commit is contained in:
VladimirMangos 2009-08-04 23:33:33 +04:00
parent 6db608d1d3
commit 49b88a14a9
2 changed files with 4 additions and 3 deletions

View file

@ -2354,7 +2354,7 @@ void Spell::EffectApplyAura(uint32 i)
return;
// ghost spell check, allow apply any auras at player loading in ghost mode (will be cleanup after load)
if( !unitTarget->isAlive() && m_spellInfo->Id != 20584 && m_spellInfo->Id != 8326 &&
if( !unitTarget->isAlive() && !IsDeathPersistentSpell(m_spellInfo) &&
(unitTarget->GetTypeId()!=TYPEID_PLAYER || !((Player*)unitTarget)->GetSession()->PlayerLoading()) )
return;