Core/Spells: Fixed Ice Block / Divine Shield cast in Cyclone (#24465)

(cherry picked from commit c41ae89069)
This commit is contained in:
Keader
2020-04-18 12:53:06 -03:00
committed by Shauren
parent c57c26d7fb
commit 97ed31fe76

View File

@@ -6404,6 +6404,8 @@ SpellCastResult Spell::CheckCasterAuras(int32* param1) const
}
else if (!CheckSpellCancelsStun(param1))
result = SPELL_FAILED_STUNNED;
else if ((m_spellInfo->Mechanic & MECHANIC_IMMUNE_SHIELD) && m_caster->ToUnit() && m_caster->ToUnit()->HasAuraWithMechanic(1 << MECHANIC_BANISH))
result = SPELL_FAILED_STUNNED;
}
else if (unitflag & UNIT_FLAG_SILENCED && m_spellInfo->PreventionType & SPELL_PREVENTION_TYPE_SILENCE && !CheckSpellCancelsSilence(param1))
result = SPELL_FAILED_SILENCED;