Core/Spells: Removed MECHANIC_IMMUNE_SHIELD + MECHANIC_BANISH special case check in Spell::CheckCasterAuras and named possibly related spell attribute

Port From (https://github.com/TrinityCore/TrinityCore/commit/721103c1c9649fc769a4230216b871319a5f7643)
This commit is contained in:
Hondacrx
2024-08-26 16:25:42 -04:00
parent 7946aa1958
commit 89587bbd59
2 changed files with 1 additions and 3 deletions
-2
View File
@@ -6309,8 +6309,6 @@ 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 (unitCaster.IsSilenced(m_spellSchoolMask) && (m_spellInfo.PreventionType & SpellPreventionType.Silence) != 0 && !CheckSpellCancelsSilence(ref param1))
result = SpellCastResult.Silenced;