From b858da238370bdf09487e72c83cbe76ebf4ec7b5 Mon Sep 17 00:00:00 2001 From: ApoC Date: Sun, 7 Jun 2009 02:13:50 +0200 Subject: [PATCH] [7972] Fixed 20186 to use base max mana instead of max current mana. Thx. to Ambient who pointed it out. Signed-off-by: ApoC --- src/game/Unit.cpp | 4 ++-- src/shared/revision_nr.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index 4b693b4db..a3ef9b4a1 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -5508,8 +5508,8 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, Aura* triggeredByAu { if (pVictim->getPowerType() == POWER_MANA) { - // 2% of maximum mana - basepoints0 = int32(pVictim->GetMaxPower(POWER_MANA) * 2 / 100); + // 2% of maximum base mana + basepoints0 = int32(pVictim->GetCreateMana() * 2 / 100); pVictim->CastCustomSpell(pVictim, 20268, &basepoints0, NULL, NULL, true, NULL, triggeredByAura); } return true; diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index ab4e44b4a..d5e8ece38 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 "7971" + #define REVISION_NR "7972" #endif // __REVISION_NR_H__ -- 2.11.4.GIT