diff options
author | thenecromancer <none@none> | 2010-01-24 14:47:26 +0100 |
---|---|---|
committer | thenecromancer <none@none> | 2010-01-24 14:47:26 +0100 |
commit | efa55f457ff3bde9ac7d0f76c95e7b90e2aa9613 (patch) | |
tree | 7fbee1cf4180fc02125e76dc366454608ed88253 /src/game/Unit.cpp | |
parent | 58383311a632337ab04900c5e035f43a6b4f7d1b (diff) |
Implement direct damage effect for Seal of Vengeance
--HG--
branch : trunk
Diffstat (limited to 'src/game/Unit.cpp')
-rw-r--r-- | src/game/Unit.cpp | 28 |
1 files changed, 28 insertions, 0 deletions
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 |