[8708] Fixed damage from spell 1120 and ranks when target below or equal 25% of health.

Signed-off-by: ApoC <apoc@nymfe.net>
This commit is contained in:
KiriX 2009-10-22 14:10:27 +02:00 committed by ApoC
parent f1800cf05a
commit eb26f27a21
3 changed files with 13 additions and 1 deletions

View file

@ -4509,6 +4509,17 @@ 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;
return;
}
break;
}
case SPELLFAMILY_DRUID:
{
// Rake