Core/Spell: add an exception for Cyclone ignoring it's own immunity using dispel type

- Unsure of what is the correct check, most generic thing I could make

Closes #18479
(cherry picked from commit 452ef146f4)
This commit is contained in:
ariel-
2016-12-15 10:01:34 -03:00
committed by DoctorKraft
parent c29e25edfa
commit b80600f88a

View File

@@ -1622,7 +1622,7 @@ bool SpellInfo::CanPierceImmuneAura(SpellInfo const* auraSpellInfo) const
if (!auraSpellInfo ||
(auraSpellInfo->Mechanic != MECHANIC_IMMUNE_SHIELD &&
auraSpellInfo->Mechanic != MECHANIC_INVULNERABILITY &&
(auraSpellInfo->Mechanic != MECHANIC_BANISH || IsRankOf(auraSpellInfo)))) // Banish shouldn't be immune to itself
(auraSpellInfo->Mechanic != MECHANIC_BANISH || (IsRankOf(auraSpellInfo) && auraSpellInfo->Dispel != DISPEL_NONE)))) // Banish shouldn't be immune to itself, but Cyclone should
return true;
}