aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormegamage <none@none>2009-06-05 17:27:36 -0500
committermegamage <none@none>2009-06-05 17:27:36 -0500
commit43eb574a378c39f005dfba64c2a47b94d0ab6d0a (patch)
treef3cfaf7b7c9f351d6053ba7c9f071fd5893c3dbb /src
parent7b3f9e2c386eb81782d130fad115abd9e6e27242 (diff)
[7963] Fixed energize value for 20186 proc. Author: ApoC
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/Unit.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
index 2b9f17b1402..b858de7228e 100644
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -6062,7 +6062,12 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, AuraEffect* trigger
// Judgement of Wisdom
case 20186:
{
- pVictim->CastSpell(pVictim, 20268, true, NULL, triggeredByAura);
+ if (pVictim->getPowerType() == POWER_MANA)
+ {
+ // 2% of maximum mana
+ basepoints0 = int32(pVictim->GetMaxPower(POWER_MANA) * 2 / 100);
+ pVictim->CastCustomSpell(pVictim, 20268, &basepoints0, NULL, NULL, true, 0, triggeredByAura);
+ }
return true;
}
// Holy Power (Redemption Armor set)