Jump to content

Recommended Posts

Posted

As all the hunter's shots and stings consume an amount of the casters base mana, we have to update the dummyproc of "Thrill of the Hunt" (http://www.wowhead.com/?spell=34499).

From 0684956e6b9af624296423b47e061f004503351c Mon Sep 17 00:00:00 2001
From: pasdVn <[email protected]>
Date: Sat, 24 Jan 2009 12:27:02 +0100
Subject: [PATCH] fixed spell 3449 and ranks

---
src/game/Unit.cpp |    2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
index 16a4f1d..9f5051e 100644
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -5264,7 +5264,7 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, Aura* triggeredByAu
                    return false;

                // mana cost save
-                basepoints0 = procSpell->manaCost * 40/100;
+                basepoints0 = procSpell->ManaCostPercentage * GetCreateMana() / 100 * 40/100;
                if(basepoints0 <= 0)
                    return false;

-- 
1.6.0.2.1172.ga5ed0

In fact this is not 100% correct (we don't apply auras that degrease mana costs...), but that would require bigger changes or ugly hacks I think. So maybe we can live with this sollution (it was done the same way before^^).

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