From 94147f2b5adefc5de0312560836cee644692a882 Mon Sep 17 00:00:00 2001 From: VladimirMangos Date: Thu, 3 Dec 2009 02:03:01 +0300 Subject: [PATCH] [8910] Implement spell 62124 damage part. --- src/game/Spell.cpp | 8 +++++++- src/game/SpellEffects.cpp | 4 ++++ src/shared/revision_nr.h | 2 +- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp index 36d154fd8..c55b0e06a 100644 --- a/src/game/Spell.cpp +++ b/src/game/Spell.cpp @@ -2532,8 +2532,14 @@ void Spell::cast(bool skipCheck) break; case SPELLFAMILY_PALADIN: { + // Hand of Reckoning + if (m_spellInfo->Id == 62124) + { + if (m_targets.getUnitTarget() && m_targets.getUnitTarget()->getVictim() != m_caster) + AddPrecastSpell(67485); // Hand of Rekoning (no typos in name ;) ) + } // Divine Shield, Divine Protection or Hand of Protection - if (m_spellInfo->SpellFamilyFlags & UI64LIT(0x0000000000400080)) + else if (m_spellInfo->SpellFamilyFlags & UI64LIT(0x0000000000400080)) { AddPrecastSpell(25771); // Forbearance AddPrecastSpell(61987); // Avenging Wrath Marker diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index 81a21485d..4bc53931a 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -358,6 +358,10 @@ void Spell::EffectSchoolDMG(uint32 effect_idx) damage = unitTarget->GetMaxHealth() / 10; break; } + // Hand of Rekoning (name not have typos ;) ) + case 67485: + damage += uint32(0.5f * m_caster->GetTotalAttackPowerValue(BASE_ATTACK)); + break; } break; } diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 5d20c01cc..bda6b34dd 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 "8909" + #define REVISION_NR "8910" #endif // __REVISION_NR_H__