mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 01:37:00 +00:00
For check allowed in dead state auras apply use IsDeathPersistentSpell instead hack code.
This commit is contained in:
parent
6db608d1d3
commit
49b88a14a9
2 changed files with 4 additions and 3 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue