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)
|
||||
{
|
||||
// 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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue