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
This commit is contained in:
ariel-
2016-12-15 10:01:34 -03:00
parent 6c21ddd9b9
commit 452ef146f4

View File

@@ -1293,7 +1293,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;
}