mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 08:55:32 +01:00
Fixed Hammer of Wrath
--HG-- branch : trunk
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user