[11540] Fixed spell 59752 and some other impossibility cast in stun like states.

Original patch provided by darkstalker.
This commit is contained in:
VladimirMangos 2011-05-26 03:43:59 +04:00
parent 5cae1c2211
commit 2b79599986
4 changed files with 18 additions and 8 deletions

View file

@ -5709,8 +5709,9 @@ SpellCastResult Spell::CheckCasterAuras() const
else if (m_spellInfo->EffectApplyAuraName[i] == SPELL_AURA_DISPEL_IMMUNITY)
dispel_immune |= GetDispellMask(DispelType(m_spellInfo->EffectMiscValue[i]));
}
// immune movement impairment and loss of control
if (m_spellInfo->Id == 42292) // PvP Trinket
// immune movement impairment and loss of control (spell data have special structure for mark this case)
if (IsSpellRemoveAllMovementAndControlLossEffects(m_spellInfo))
mechanic_immune = IMMUNE_TO_MOVEMENT_IMPAIRMENT_AND_LOSS_CONTROL_MASK;
}