Skip to content

Commit

Permalink
[9962] Modify way 4x damage bonus claculated for spell 1120 and ranks.
Browse files Browse the repository at this point in the history
* Now apply 4x bonus dependent from target health in time spell cast,
  not from current health in tick.
* 4x bonus applied to own spell damage value, not to total taken damage.
  • Loading branch information
VladimirMangos committed May 23, 2010
1 parent 3126495 commit 52cb886
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
10 changes: 10 additions & 0 deletions src/game/SpellAuras.cpp
Expand Up @@ -4888,6 +4888,16 @@ void Aura::HandlePeriodicDamage(bool apply, bool Real)
}
break;
}
case SPELLFAMILY_WARLOCK:
{
// Drain Soul
if (m_spellProto->SpellFamilyFlags & UI64LIT(0x0000000000004000))
{
if (m_target->GetHealth() * 100 / m_target->GetMaxHealth() <= 25)
m_modifier.m_amount *= 4;
}
break;
}
case SPELLFAMILY_DRUID:
{
// Rake
Expand Down
8 changes: 0 additions & 8 deletions src/game/Unit.cpp
Expand Up @@ -9125,15 +9125,7 @@ uint32 Unit::SpellDamageBonusDone(Unit *pVictim, SpellEntry const *spellProto, u
break;
}
case SPELLFAMILY_WARLOCK:
{
// Drain Soul
if (spellProto->SpellFamilyFlags & UI64LIT(0x0000000000004000))
{
if (pVictim->GetHealth() * 100 / pVictim->GetMaxHealth() <= 25)
DoneTotalMod *= 4;
}
break;
}
case SPELLFAMILY_PRIEST:
{
// Glyph of Smite
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 "9961"
#define REVISION_NR "9962"
#endif // __REVISION_NR_H__

0 comments on commit 52cb886

Please sign in to comment.