From 7bfaf421850d396881f8f363432b0850f0919f9d Mon Sep 17 00:00:00 2001 From: Splinter Date: Mon, 8 Feb 2010 15:48:14 +0300 Subject: [PATCH] [9328] Implement spell 772 (high ranks) additional damage bonus. Signed-off-by: VladimirMangos --- src/game/SpellAuras.cpp | 4 ++++ src/shared/revision_nr.h | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp index 1598c32a9..78c141244 100644 --- a/src/game/SpellAuras.cpp +++ b/src/game/SpellAuras.cpp @@ -4708,6 +4708,10 @@ void Aura::HandlePeriodicDamage(bool apply, bool Real) float mwb_min = caster->GetWeaponDamageRange(BASE_ATTACK,MINDAMAGE); float mwb_max = caster->GetWeaponDamageRange(BASE_ATTACK,MAXDAMAGE); m_modifier.m_amount+=int32(((mwb_min+mwb_max)/2+ap*mws/14000)*0.2f); + // If used while target is above 75% health, Rend does 35% more damage + if( m_spellProto->CalculateSimpleValue(1) !=0 && + m_target->GetHealth() > m_target->GetMaxHealth() * m_spellProto->CalculateSimpleValue(1) / 100) + m_modifier.m_amount += m_modifier.m_amount * m_spellProto->CalculateSimpleValue(2) / 100; return; } break; diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index b37b5ed65..b05ee5a9c 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "9327" + #define REVISION_NR "9328" #endif // __REVISION_NR_H__