From efa55f457ff3bde9ac7d0f76c95e7b90e2aa9613 Mon Sep 17 00:00:00 2001 From: thenecromancer Date: Sun, 24 Jan 2010 14:47:26 +0100 Subject: Implement direct damage effect for Seal of Vengeance --HG-- branch : trunk --- src/game/Unit.cpp | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'src') diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index aa0e1dae0d1..40b3e4f5e26 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -6737,6 +6737,20 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, AuraEffect* trigger return false; triggered_spell_id = 31803; + // On target with 5 stacks of Holy Vengeance direct damage is done + if (Aura * aur = pVictim->GetAura(triggered_spell_id, GetGUID())) + { + if (aur->GetStackAmount() == 5) + { + aur->RefreshDuration(); + CastSpell(pVictim, 42463, true); + return true; + } + } + + // Only Autoattack can stack debuff + if (procFlag & PROC_FLAG_SUCCESSFUL_MELEE_SPELL_HIT) + return false; break; } // Seal of Corruption @@ -6746,6 +6760,20 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, AuraEffect* trigger return false; triggered_spell_id = 53742; + // On target with 5 stacks of Blood Corruption direct damage is done + if (Aura * aur = pVictim->GetAura(triggered_spell_id, GetGUID())) + { + if (aur->GetStackAmount() == 5) + { + aur->RefreshDuration(); + CastSpell(pVictim, 53739, true); + return true; + } + } + + // Only Autoattack can stack debuff + if (procFlag & PROC_FLAG_SUCCESSFUL_MELEE_SPELL_HIT) + return false; break; } // Spiritual Attunement -- cgit v1.2.3