mirror of
https://github.com/mangosfour/server.git
synced 2025-12-21 19:37:02 +00:00
[8418] Implement work talent 47193.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
c2f8a0ff7d
commit
0c78bfba33
3 changed files with 50 additions and 3 deletions
|
|
@ -4887,11 +4887,17 @@ void Aura::HandleAuraModIncreaseHealth(bool apply, bool Real)
|
|||
case 34511: // Valor (Bulwark of Kings, Bulwark of the Ancient Kings)
|
||||
case 44055: // Tremendous Fortitude (Battlemaster's Alacrity)
|
||||
case 50322: // Survival Instincts
|
||||
case 54443: // Demonic Empowerment (Voidwalker)
|
||||
{
|
||||
if(Real)
|
||||
{
|
||||
if(apply)
|
||||
{
|
||||
// Demonic Empowerment (Voidwalker) - special case, store percent in data
|
||||
// recalculate to full amount at apply for proper remove
|
||||
if (GetId() == 54443)
|
||||
m_modifier.m_amount = m_target->GetMaxHealth() * m_modifier.m_amount / 100;
|
||||
|
||||
m_target->HandleStatModifier(UNIT_MOD_HEALTH, TOTAL_VALUE, float(m_modifier.m_amount), apply);
|
||||
m_target->ModifyHealth(m_modifier.m_amount);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue