Skip to content

Commit

Permalink
[9328] Implement spell 772 (high ranks) additional damage bonus.
Browse files Browse the repository at this point in the history
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
  • Loading branch information
Splinter authored and VladimirMangos committed Feb 8, 2010
1 parent a01ddd4 commit c7558d7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/game/SpellAuras.cpp
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion 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__

0 comments on commit c7558d7

Please sign in to comment.