Fixed Hammer of Wrath

--HG--
branch : trunk
This commit is contained in:
n0n4m3
2009-12-20 15:28:24 +01:00
parent d4aaa3d3b2
commit d0a68e16bb

View File

@@ -688,8 +688,17 @@ void Spell::SpellDamageSchoolDmg(uint32 effect_idx)
}
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
if (m_spellInfo->SpellFamilyFlags[1]&0x00040000)
else if (m_spellInfo->SpellFamilyFlags[1]&0x00040000)
{
// Add main hand dps * effect[2] amount
float average = (m_caster->GetFloatValue(UNIT_FIELD_MINDAMAGE) + m_caster->GetFloatValue(UNIT_FIELD_MAXDAMAGE)) / 2;