Jump to content

Recommended Posts

Posted

To stop those guys spamming the bug forum ...:P

From 4299281cb0eb4c2ea0dec19d82c9720d93dea3bc Mon Sep 17 00:00:00 2001
From: unknown <Tobias@.(none)>
Date: Sun, 7 Feb 2010 18:45:19 +0100
Subject: [PATCH] added RAP bonusdamage to hunters "Kill shot" (53351 and ranks)

---
src/game/SpellEffects.cpp |   11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp
index 27545e5..1201a36 100644
--- a/src/game/SpellEffects.cpp
+++ b/src/game/SpellEffects.cpp
@@ -4607,6 +4607,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_PALADIN:
        {
            // Judgement of Command - receive benefit from Spell Damage and Attack Power
-- 
1.6.5.1.1367.gcd48

And YES!, this is a correct implementation and the damage is correct now:D!

  • 40 years later...
Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use