mirror of
https://github.com/mangosfour/server.git
synced 2025-12-17 07:37:03 +00:00
[11772] Some HandleAuraModIncreaseHealthPercent maximize health level at apply.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
336ebaa24a
commit
cbc841f05d
2 changed files with 16 additions and 2 deletions
|
|
@ -5932,7 +5932,21 @@ void Aura::HandleAuraModIncreaseEnergyPercent(bool apply, bool /*Real*/)
|
||||||
|
|
||||||
void Aura::HandleAuraModIncreaseHealthPercent(bool apply, bool /*Real*/)
|
void Aura::HandleAuraModIncreaseHealthPercent(bool apply, bool /*Real*/)
|
||||||
{
|
{
|
||||||
GetTarget()->HandleStatModifier(UNIT_MOD_HEALTH, TOTAL_PCT, float(m_modifier.m_amount), apply);
|
Unit *target = GetTarget();
|
||||||
|
|
||||||
|
target->HandleStatModifier(UNIT_MOD_HEALTH, TOTAL_PCT, float(m_modifier.m_amount), apply);
|
||||||
|
|
||||||
|
// spell special cases when current health set to max value at apply
|
||||||
|
switch (GetId())
|
||||||
|
{
|
||||||
|
case 60430: // Molten Fury
|
||||||
|
case 64193: // Heartbreak
|
||||||
|
case 65737: // Heartbreak
|
||||||
|
target->SetHealth(target->GetMaxHealth());
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void Aura::HandleAuraIncreaseBaseHealthPercent(bool apply, bool /*Real*/)
|
void Aura::HandleAuraIncreaseBaseHealthPercent(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 "11771"
|
#define REVISION_NR "11772"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue