diff options
author | tobmaps <spambot42@yandex.ru> | 2011-06-09 02:20:31 +0700 |
---|---|---|
committer | tobmaps <spambot42@yandex.ru> | 2011-06-09 02:20:31 +0700 |
commit | 14067416b41d4dbc76d9f0b7c0844ca2ea756258 (patch) | |
tree | a68eba41ab5c61436b5c88726a4e0d234bf2615f /src | |
parent | a017474ab859c2d3164c326e4865ef8fdb483435 (diff) |
Core/Arenas: Fix removal of some auras at arena join/leave
Closes #575 #1721
Diffstat (limited to 'src')
-rwxr-xr-x | src/server/game/Entities/Unit/Unit.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Entities/Unit/Unit.cpp b/src/server/game/Entities/Unit/Unit.cpp index a4b0041e609..01b325dd36e 100755 --- a/src/server/game/Entities/Unit/Unit.cpp +++ b/src/server/game/Entities/Unit/Unit.cpp @@ -4041,7 +4041,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()->Attributes & SPELL_ATTR0_UNAFFECTED_BY_INVULNERABILITY)) // not unaffected by invulnerability auras or not having that unknown flag (that seemed the most probable) + && !(aura->GetSpellProto()->AttributesEx3 & SPELL_ATTR3_DEATH_PERSISTENT) // not death persistent auras && (aurApp->IsPositive() ^ onleave)) // remove positive buffs on enter, negative buffs on leave RemoveAura(iter); else |