*Remove duplicated code.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-04-24 15:03:15 -05:00
parent bbf450c6e1
commit fdc94c91fa

View File

@@ -430,13 +430,6 @@ void Spell::SpellDamageSchoolDmg(uint32 effect_idx)
damage += int32(m_caster->GetTotalAttackPowerValue(BASE_ATTACK) * 12 / 100);
break;
}
// Concussion Blow
else if(m_spellInfo->SpellFamilyFlags[0] & 0x4000000)
{
int32 pct = m_caster->CalculateSpellDamage(m_spellInfo, 2, m_spellInfo->EffectBasePoints[2], unitTarget);
damage += int32(m_caster->GetTotalAttackPowerValue(BASE_ATTACK) * pct / 100);
break;
}
break;
}
case SPELLFAMILY_WARLOCK:
@@ -1394,7 +1387,7 @@ void Spell::EffectDummy(uint32 i)
return;
}
// Concussion Blow
if(m_spellInfo->SpellFamilyFlags & 0x0000000004000000LL)
if(m_spellInfo->SpellFamilyFlags[0] & 0x4000000)
{
m_damage+= uint32(damage * m_caster->GetTotalAttackPowerValue(BASE_ATTACK) / 100);
return;