Fixed double bonus for Hammer of Wrath, already in spell_bonus_data

--HG--
branch : trunk
This commit is contained in:
n0n4m3
2009-12-25 15:33:41 +01:00
parent 621634642d
commit 162558d506
-9
View File
@@ -699,15 +699,6 @@ void Spell::SpellDamageSchoolDmg(uint32 effect_idx)
} }
case SPELLFAMILY_PALADIN: case SPELLFAMILY_PALADIN:
{ {
// Hammer of Wrath
if (m_spellInfo->SpellFamilyFlags[1]&0x00000080)
{
float ap = m_caster->GetTotalAttackPowerValue(BASE_ATTACK);
int32 holy = m_caster->SpellBaseDamageBonus(GetSpellSchoolMask(m_spellInfo)) +
m_caster->SpellBaseDamageBonusForVictim(GetSpellSchoolMask(m_spellInfo), unitTarget);
damage += int32(ap * 0.15f) + int32(holy * 0.15f);
}
// Hammer of the Righteous // Hammer of the Righteous
else if (m_spellInfo->SpellFamilyFlags[1]&0x00040000) else if (m_spellInfo->SpellFamilyFlags[1]&0x00040000)
{ {