aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorQAston <qaston@gmail.com>2011-07-12 06:34:57 +0200
committerQAston <qaston@gmail.com>2011-07-12 06:34:57 +0200
commitb253c844fcfcffb481345ad7d17ee92652e2019a (patch)
tree3f49254e084fdc2fd247714045ed7c0584606780 /src
parent145ff6638287a14984480c0c4c1c2e229552b379 (diff)
Core/Spells: Add ability check in one more place, to prevent other kind of spell reflection.
Diffstat (limited to 'src')
-rwxr-xr-xsrc/server/game/Spells/Spell.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/server/game/Spells/Spell.cpp b/src/server/game/Spells/Spell.cpp
index 1830ba07a87..cd88e048537 100755
--- a/src/server/game/Spells/Spell.cpp
+++ b/src/server/game/Spells/Spell.cpp
@@ -529,7 +529,8 @@ m_caster(Caster), m_spellValue(new SpellValue(m_spellInfo))
// determine reflection
m_canReflect = false;
- if (m_spellInfo->DmgClass == SPELL_DAMAGE_CLASS_MAGIC && !IsAreaOfEffectSpell(m_spellInfo) && !(m_spellInfo->AttributesEx2 & SPELL_ATTR2_CANT_REFLECTED))
+ // Patch 1.2 notes: Spell Reflection no longer reflects abilities
+ if (m_spellInfo->DmgClass == SPELL_DAMAGE_CLASS_MAGIC && !IsAreaOfEffectSpell(m_spellInfo) && !(m_spellInfo->AttributesEx2 & SPELL_ATTR2_CANT_REFLECTED) && !(m_spellInfo->Attributes & SPELL_ATTR0_ABILITY))
{
for (int j = 0; j < MAX_SPELL_EFFECTS; ++j)
{