TrinityCore/TrinityCore — pull request #6548 by Elron103 (2012-05-18 19:35:37+00:00)
Title: Core/Spells: Fix immunity checking for creatures (i.e. Mind Control)

## Description

As stated above, the immunities are currently not working as expected for creatures.

For example Bronjahm (Creature ID: 36497) is mindcontrollable (Spell ID: 605) although the creature has mechanic_immune_mask & 1 set, which should avoid it.

As you can see in the diff, this is caused by a wrong if in this section. The spell has effects with mechanics and in our current code this causes the code to ignore the "main"-mechanic of the spell.

## Revisions

Trinity: https://github.com/Elron103/TrinityCore/commit/7e62c34b247d886d89aea8bd5e8e9241d8cefa44
Database: TDB rev. 46