mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 13:37:05 +00:00
[7972] Fixed 20186 to use base max mana instead of max current mana.
Thx. to Ambient who pointed it out. Signed-off-by: ApoC <apoc@nymfe.net>
This commit is contained in:
parent
5ac6b2f34b
commit
ffad65fe01
2 changed files with 3 additions and 3 deletions
|
|
@ -5508,8 +5508,8 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, Aura* triggeredByAu
|
||||||
{
|
{
|
||||||
if (pVictim->getPowerType() == POWER_MANA)
|
if (pVictim->getPowerType() == POWER_MANA)
|
||||||
{
|
{
|
||||||
// 2% of maximum mana
|
// 2% of maximum base mana
|
||||||
basepoints0 = int32(pVictim->GetMaxPower(POWER_MANA) * 2 / 100);
|
basepoints0 = int32(pVictim->GetCreateMana() * 2 / 100);
|
||||||
pVictim->CastCustomSpell(pVictim, 20268, &basepoints0, NULL, NULL, true, NULL, triggeredByAura);
|
pVictim->CastCustomSpell(pVictim, 20268, &basepoints0, NULL, NULL, true, NULL, triggeredByAura);
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "7971"
|
#define REVISION_NR "7972"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue