Core/Arenas: Remove both positive and negative auras only at arena join
Closes #2000
This commit is contained in:
@@ -4029,7 +4029,7 @@ void Unit::RemoveAllAuras()
|
||||
}
|
||||
}
|
||||
|
||||
void Unit::RemoveArenaAuras(bool onleave)
|
||||
void Unit::RemoveArenaAuras()
|
||||
{
|
||||
// in join, remove positive buffs, on end, remove negative
|
||||
// used to remove positive visible auras in arenas
|
||||
@@ -4039,8 +4039,7 @@ void Unit::RemoveArenaAuras(bool onleave)
|
||||
Aura const* aura = aurApp->GetBase();
|
||||
if (!(aura->GetSpellProto()->AttributesEx4 & SPELL_ATTR4_UNK21) // don't remove stances, shadowform, pally/hunter auras
|
||||
&& !aura->IsPassive() // don't remove passive auras
|
||||
&& !(aura->GetSpellProto()->AttributesEx3 & SPELL_ATTR3_DEATH_PERSISTENT) // not death persistent auras
|
||||
&& (aurApp->IsPositive() ^ onleave)) // remove positive buffs on enter, negative buffs on leave
|
||||
&& (aurApp->IsPositive() || !(aura->GetSpellProto()->AttributesEx3 & SPELL_ATTR3_DEATH_PERSISTENT))) // not negative death persistent auras
|
||||
RemoveAura(iter);
|
||||
else
|
||||
++iter;
|
||||
|
||||
Reference in New Issue
Block a user