mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 13:37:05 +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
|
|
@ -3406,8 +3406,10 @@ int32 Unit::GetMaxNegativeAuraModifierByMiscValue(AuraType auratype, int32 misc_
|
|||
|
||||
bool Unit::AddAura(Aura *Aur)
|
||||
{
|
||||
SpellEntry const* aurSpellInfo = Aur->GetSpellProto();
|
||||
|
||||
// ghost spell check, allow apply any auras at player loading in ghost mode (will be cleanup after load)
|
||||
if( !isAlive() && Aur->GetId() != 20584 && Aur->GetId() != 8326 && Aur->GetId() != 2584 &&
|
||||
if( !isAlive() && !IsDeathPersistentSpell(aurSpellInfo) &&
|
||||
(GetTypeId()!=TYPEID_PLAYER || !((Player*)this)->GetSession()->PlayerLoading()) )
|
||||
{
|
||||
delete Aur;
|
||||
|
|
@ -3423,7 +3425,6 @@ bool Unit::AddAura(Aura *Aur)
|
|||
return false;
|
||||
}
|
||||
|
||||
SpellEntry const* aurSpellInfo = Aur->GetSpellProto();
|
||||
AuraType aurName = Aur->GetModifier()->m_auraname;
|
||||
|
||||
spellEffectPair spair = spellEffectPair(Aur->GetId(), Aur->GetEffIndex());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue