aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormegamage <none@none>2009-02-01 16:21:40 -0600
committermegamage <none@none>2009-02-01 16:21:40 -0600
commit867b90045b81a680f326aa9f698c4270af500581 (patch)
tree631fd21d848db991a9a8f62ae55f7516e390190a /src
parentdda3ce292284f8f427a59ac5d086d253a49d7ed7 (diff)
[7209] Fix damage for paladin 53595
Signed-off-by: DiSlord <dislord@nomail.com> --HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/SpellEffects.cpp8
-rw-r--r--src/shared/revision_nr.h2
2 files changed, 9 insertions, 1 deletions
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp
index e51c2733be9..149e996a185 100644
--- a/src/game/SpellEffects.cpp
+++ b/src/game/SpellEffects.cpp
@@ -639,6 +639,14 @@ void Spell::SpellDamageSchoolDmg(uint32 effect_idx)
m_caster->SpellBaseDamageBonusForVictim(GetSpellSchoolMask(m_spellInfo), unitTarget);
damage += int32(ap * 0.15f) + int32(holy * 15 / 100);
}
+ // Hammer of the Righteous
+ else if(m_spellInfo->SpellFamilyFlags&0x0004000000000000LL)
+ {
+ // Add main hand dps * effect[2] amount
+ float averange = (m_caster->GetFloatValue(UNIT_FIELD_MINDAMAGE) + m_caster->GetFloatValue(UNIT_FIELD_MAXDAMAGE)) / 2;
+ int32 count = m_caster->CalculateSpellDamage(m_spellInfo, 2, m_spellInfo->EffectBasePoints[2], unitTarget);
+ damage += count * int32(averange * 1000) / m_caster->GetAttackTime(BASE_ATTACK);
+ }
break;
}
}
diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h
index 83106d8bd32..0fc46b32fd1 100644
--- a/src/shared/revision_nr.h
+++ b/src/shared/revision_nr.h
@@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
- #define REVISION_NR "7208"
+ #define REVISION_NR "7209"
#endif // __REVISION_NR_H__