Core/Spells: Fixed Ice Block / Divine Shield cast in Cyclone
Port From (https://github.com/TrinityCore/TrinityCore/commit/97ed31fe76e4e240354b1ff1af4405af487dee3b)
This commit is contained in:
@@ -5673,6 +5673,8 @@ namespace Game.Spells
|
|||||||
}
|
}
|
||||||
else if (!CheckSpellCancelsStun(ref param1))
|
else if (!CheckSpellCancelsStun(ref param1))
|
||||||
result = SpellCastResult.Stunned;
|
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))
|
else if (unitflag.HasAnyFlag(UnitFlags.Silenced) && m_spellInfo.PreventionType.HasAnyFlag(SpellPreventionType.Silence) && !CheckSpellCancelsSilence(ref param1))
|
||||||
result = SpellCastResult.Silenced;
|
result = SpellCastResult.Silenced;
|
||||||
|
|||||||
Reference in New Issue
Block a user