*Apply 4x damage mod for Drain Soul at targets with low health.

--HG--
branch : trunk
This commit is contained in:
QAston
2009-06-24 16:20:40 +02:00
parent 33b2917bb7
commit d5c0337a5e
2 changed files with 11 additions and 1 deletions

View File

@@ -4673,6 +4673,17 @@ void AuraEffect::HandlePeriodicDamage(bool apply, bool Real, bool changeAmount)
}
break;
}
// Drain Soul - If the target is at or below 25% health, Drain Soul causes four times the normal damage
case SPELLFAMILY_WARLOCK:
{
if (m_spellProto->SpellFamilyFlags[0] & 0x00004000)
{
// if victim is below 25% of hp
if (m_target->GetMaxHealth() / 4 > m_target->GetHealth())
m_amount *= 4;
}
break;
}
case SPELLFAMILY_DRUID:
{
// Rake

View File

@@ -9265,7 +9265,6 @@ uint32 Unit::SpellDamageBonus(Unit *pVictim, SpellEntry const *spellProto, uint3
}
}
break;
// Glyph of Shadow Word: Pain
case SPELLFAMILY_PRIEST:
if (spellProto->SpellFamilyFlags[0] & 0x800000)