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

This commit is contained in:
hondacrx
2018-03-12 14:47:43 -04:00
parent 05c975c643
commit ab54543573
+1 -1
View File
@@ -682,7 +682,7 @@ namespace Game.Spells
if (auraSpellInfo == null ||
(auraSpellInfo.Mechanic != Mechanics.ImmuneShield &&
auraSpellInfo.Mechanic != Mechanics.Invulnerability &&
(auraSpellInfo.Mechanic != Mechanics.Banish || IsRankOf(auraSpellInfo)))) // Banish shouldn't be immune to itself
(auraSpellInfo.Mechanic != Mechanics.Banish || (IsRankOf(auraSpellInfo) && auraSpellInfo.Dispel != DispelType.None)))) // Banish shouldn't be immune to itself, but Cyclone should
return true;
}