From 5dc92604cbabf1c0d7834390227e7cbcb265b94d Mon Sep 17 00:00:00 2001 From: ApoC Date: Fri, 5 Jun 2009 13:58:03 +0200 Subject: [PATCH] [7963] Fixed energize value for 20186 proc. Signed-off-by: ApoC --- src/game/Unit.cpp | 6 +++++- src/shared/revision_nr.h | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index d0d78ceea..236d029d8 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -5507,7 +5507,11 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, Aura* triggeredByAu case 20186: { if (pVictim->getPowerType() == POWER_MANA) - pVictim->CastSpell(pVictim, 20268, true, 0, triggeredByAura); + { + // 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) diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index d64029851..5a200dafe 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 "7962" + #define REVISION_NR "7963" #endif // __REVISION_NR_H__ -- 2.11.4.GIT