From d5c0337a5ebbfa6f8ab03f47e16992e81319c19b Mon Sep 17 00:00:00 2001 From: QAston Date: Wed, 24 Jun 2009 16:20:40 +0200 Subject: *Apply 4x damage mod for Drain Soul at targets with low health. --HG-- branch : trunk --- src/game/SpellAuras.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/game/SpellAuras.cpp') diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp index 4bbd1f06faa..94555952916 100644 --- a/src/game/SpellAuras.cpp +++ b/src/game/SpellAuras.cpp @@ -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 -- cgit v1.2.3