Core/Spells: Add ability check in one more place, to prevent other kind of spell reflection.

This commit is contained in:
QAston
2011-07-12 06:34:57 +02:00
parent 145ff66382
commit b253c844fc

View File

@@ -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)
{