mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 07:37:01 +00:00
[8724] Fixed energize amount for spell 48389
Signed-off-by: ApoC <apoc@nymfe.net>
This commit is contained in:
parent
1101e3f6b0
commit
7323966738
2 changed files with 17 additions and 7 deletions
|
|
@ -4401,13 +4401,23 @@ void Aura::HandlePeriodicEnergize(bool apply, bool Real)
|
||||||
if (!Real)
|
if (!Real)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
m_isPeriodic = apply;
|
if (apply)
|
||||||
|
{
|
||||||
|
switch (GetId())
|
||||||
|
{
|
||||||
|
case 48391: // Owlkin Frenzy 2% base mana
|
||||||
|
m_modifier.m_amount = m_target->GetCreateMana() * 2 / 100;
|
||||||
|
break;
|
||||||
|
case 57669: // Replenishment (0.25% from max)
|
||||||
|
case 61782: // Infinite Replenishment
|
||||||
|
m_modifier.m_amount = m_target->GetMaxPower(POWER_MANA) * 25 / 10000;
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Replenishment (0.25% from max)
|
m_isPeriodic = apply;
|
||||||
// Infinite Replenishment
|
|
||||||
if (GetId() == 57669 ||
|
|
||||||
GetId() == 61782)
|
|
||||||
m_modifier.m_amount = m_target->GetMaxPower(POWER_MANA) * 25 / 10000;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Aura::HandleAuraPowerBurn(bool apply, bool /*Real*/)
|
void Aura::HandleAuraPowerBurn(bool apply, bool /*Real*/)
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "8723"
|
#define REVISION_NR "8724"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue