aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormegamage <none@none>2009-04-24 15:03:15 -0500
committermegamage <none@none>2009-04-24 15:03:15 -0500
commitfdc94c91fade8a88b30a478abe7244529e519e0c (patch)
tree26491111fdfe9a5205a626f817c5723172b9d8bd
parentbbf450c6e18e66855b83d6df90a8fdd2b274a859 (diff)
*Remove duplicated code.
--HG-- branch : trunk
-rw-r--r--src/game/SpellEffects.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp
index 4f367d4f614..6e619b0e36c 100644
--- a/src/game/SpellEffects.cpp
+++ b/src/game/SpellEffects.cpp
@@ -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;