Jump to content

[FIX] Thrill of the Hunt


Guest Most_Mangos

Recommended Posts

What bug does the patch fix? What features does the patch add?

Explosive Shot returns only 1/3 of 40% per critical

For which repository revision was the patch created?

10137

Is there a thread in the bug report section or at lighthouse?

none

Who has been writing this fix? Please include either forum user names or email addresses.

Valhalla-Project

diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
index 0a3b89a..0364193 100644
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -6547,6 +6559,17 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, Aura* triggeredByAu

                // mana cost save
                int32 mana = procSpell->manaCost + procSpell->ManaCostPercentage * GetCreateMana() / 100;
+                // Explosive Shot returns only 1/3 of 40% per critical
+                if (procSpell->Id == 53352)
+                {
+                    // All ranks have same cost
+                    SpellEntry const* explosiveShot = sSpellStore.LookupEntry(53301);
+                    if (!explosiveShot)
+                        return false;
+                    mana = explosiveShot->manaCost + explosiveShot->ManaCostPercentage * GetCreateMana() / 100;
+                    mana /= 3;
+                }
+
                basepoints[0] = mana * 40/100;
                if (basepoints[0] <= 0)
                    return false;

Link to comment
Share on other sites

×
×
  • 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