[9328] Implement spell 772 (high ranks) additional damage bonus.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
Splinter 2010-02-08 15:48:14 +03:00 committed by VladimirMangos
parent 8e0069f364
commit 7bfaf42185
2 changed files with 5 additions and 1 deletions

View file

@ -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;

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "9327"
#define REVISION_NR "9328"
#endif // __REVISION_NR_H__