mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 15:40:45 +01:00
Add one more check to EffectDispel.
Passive auras are not dispelable. This fixes a bug like spell Omen of Clarity (16864) can be dispelled by Purge (370) if you have a non passive aura like Mark of the Wild (1126). Signed-off-by: Anubisss <anubisss210@gmail.com>
This commit is contained in:
@@ -3145,6 +3145,10 @@ void Spell::EffectDispel(SpellEffIndex effIndex)
|
||||
if (!aurApp)
|
||||
continue;
|
||||
|
||||
// don't try to remove passive auras
|
||||
if (aura->IsPassive())
|
||||
continue;
|
||||
|
||||
if ((1<<aura->GetSpellProto()->Dispel) & dispelMask)
|
||||
{
|
||||
if (aura->GetSpellProto()->Dispel == DISPEL_MAGIC)
|
||||
|
||||
Reference in New Issue
Block a user