diff options
author | Subv <s.v.h21@hotmail.com> | 2012-12-23 13:21:00 -0500 |
---|---|---|
committer | Subv <s.v.h21@hotmail.com> | 2012-12-23 13:21:00 -0500 |
commit | c33a1724ae96de3759d299038b1eabd7b93a631f (patch) | |
tree | 182ab78ad7b35ca9342f4626e3271fbfff41a338 /src | |
parent | bdd625fda358d72d7987925cd091c6a8c980ff6a (diff) |
Core/Spells: Spells that are usable while stunned should no longer have problems with stun auras that don't apply any mechanic.
Diffstat (limited to 'src')
-rw-r--r-- | src/server/game/Spells/Spell.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Spells/Spell.cpp b/src/server/game/Spells/Spell.cpp index bb51d9d0e34..3cee51949bc 100644 --- a/src/server/game/Spells/Spell.cpp +++ b/src/server/game/Spells/Spell.cpp @@ -5615,7 +5615,7 @@ SpellCastResult Spell::CheckCasterAuras() const Unit::AuraEffectList const& stunAuras = m_caster->GetAuraEffectsByType(SPELL_AURA_MOD_STUN); for (Unit::AuraEffectList::const_iterator i = stunAuras.begin(); i != stunAuras.end(); ++i) { - if (!((*i)->GetSpellInfo()->GetAllEffectsMechanicMask() & (1<<MECHANIC_STUN))) + if ((*i)->GetSpellInfo()->GetAllEffectsMechanicMask() && !((*i)->GetSpellInfo()->GetAllEffectsMechanicMask() & (1<<MECHANIC_STUN))) { foundNotStun = true; break; |