Core/Spells: Fixed Ice Block / Divine Shield cast in Cyclone

Port From (https://github.com/TrinityCore/TrinityCore/commit/97ed31fe76e4e240354b1ff1af4405af487dee3b)
This commit is contained in:
hondacrx
2022-02-18 13:13:52 -05:00
parent 44b045d5be
commit e2bbb95a96
+2
View File
@@ -5673,6 +5673,8 @@ namespace Game.Spells
}
else if (!CheckSpellCancelsStun(ref param1))
result = SpellCastResult.Stunned;
else if ((m_spellInfo.Mechanic & Mechanics.ImmuneShield) != 0 && m_caster.IsUnit() && m_caster.ToUnit().HasAuraWithMechanic(1 << (int)Mechanics.Banish))
result = SpellCastResult.Stunned;
}
else if (unitflag.HasAnyFlag(UnitFlags.Silenced) && m_spellInfo.PreventionType.HasAnyFlag(SpellPreventionType.Silence) && !CheckSpellCancelsSilence(ref param1))
result = SpellCastResult.Silenced;