From 5d59f03b2506af1c9e31df87c0bc63173f8cdfdc Mon Sep 17 00:00:00 2001 From: pasdVn Date: Fri, 12 Feb 2010 06:43:11 +0100 Subject: [PATCH] [9360] Fix the damage of spell 53351 and ranks Signed-off-by: Lightguard --- src/game/SpellEffects.cpp | 11 +++++++++++ src/shared/revision_nr.h | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index 0cb2e6c0c..b45c4b57e 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -4645,6 +4645,17 @@ void Spell::EffectWeaponDmg(uint32 i) } break; } + case SPELLFAMILY_HUNTER: + { + // Kill Shot + if (m_spellInfo->SpellFamilyFlags & UI64LIT(0x80000000000000)) + { + // 0.4*RAP added to damage (that is 0.2 if we apply PercentMod (200%) to spell_bonus, too) + spellBonusNeedWeaponDamagePercentMod = true; + spell_bonus += int32( 0.2f * m_caster->GetTotalAttackPowerValue(RANGED_ATTACK) ); + } + break; + } case SPELLFAMILY_SHAMAN: { // Skyshatter Harness item set bonus diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 399aff507..edbd86899 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 "9359" + #define REVISION_NR "9360" #endif // __REVISION_NR_H__