diff options
| author | QAston <qaston@gmail.com> | 2011-07-13 20:14:55 +0200 |
|---|---|---|
| committer | QAston <qaston@gmail.com> | 2011-07-13 20:14:55 +0200 |
| commit | b9413f08b339547bf3a323b44305e5827125b7b9 (patch) | |
| tree | 3faedd31bc3312f5ead42e5d2c2e7577d71229ef /src/server/game/Spells/SpellEffects.cpp | |
| parent | 7b2cf3d1f2101324f3c93fda6182d563598a618e (diff) | |
Core/Spells: Define and implement attributes SPELL_ATTR1_CANT_BE_REDIRECTED and SPELL_ATTR1_CANT_BE_REFLECTED, fixes some problems with Grounding Totem and Spell Reflection.
Diffstat (limited to 'src/server/game/Spells/SpellEffects.cpp')
| -rwxr-xr-x | src/server/game/Spells/SpellEffects.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/server/game/Spells/SpellEffects.cpp b/src/server/game/Spells/SpellEffects.cpp index 9402cf77dd8..4699cd904fd 100755 --- a/src/server/game/Spells/SpellEffects.cpp +++ b/src/server/game/Spells/SpellEffects.cpp @@ -3171,11 +3171,9 @@ void Spell::EffectDispel(SpellEffIndex effIndex) { if (aura->GetSpellProto()->Dispel == DISPEL_MAGIC) { - bool positive = aurApp->IsPositive() ? (!(aura->GetSpellProto()->AttributesEx & SPELL_ATTR1_NEGATIVE)) : false; - // do not remove positive auras if friendly target // negative auras if non-friendly target - if (positive == unitTarget->IsFriendlyTo(m_caster)) + if (aurApp->IsPositive() == unitTarget->IsFriendlyTo(m_caster)) continue; } |
