From 32c5d4f53fa44d4c6263db2d248a9f73a1542fc9 Mon Sep 17 00:00:00 2001 From: ariel- Date: Fri, 3 Mar 2017 20:09:05 -0300 Subject: Core/Scripts: implement Hammer of the Righteous stacking Seal of Vengeance/Corruption - Patch 3.2.0 Notes: Only auto-attacks and Hammer of the Righteous can place the debuff on the paladin's current target(s). Closes #19239 --- src/server/scripts/Spells/spell_paladin.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/server/scripts/Spells/spell_paladin.cpp b/src/server/scripts/Spells/spell_paladin.cpp index 20d632b3c2a..3bff94db074 100644 --- a/src/server/scripts/Spells/spell_paladin.cpp +++ b/src/server/scripts/Spells/spell_paladin.cpp @@ -132,7 +132,8 @@ enum PaladinSpells enum PaladinSpellIcons { - PALADIN_ICON_ID_RETRIBUTION_AURA = 555 + PALADIN_ICON_ID_RETRIBUTION_AURA = 555, + PALADIN_ICON_ID_HAMMER_OF_THE_RIGHTEOUS = 3023 }; // 31850 - Ardent Defender @@ -2105,7 +2106,12 @@ class spell_pal_seal_of_vengeance : public SpellScriptLoader PreventDefaultAction(); if (!(eventInfo.GetTypeMask() & PROC_FLAG_DONE_MELEE_AUTO_ATTACK)) - return; + { + // Patch 3.2.0 Notes: Only auto-attacks and Hammer of the Righteous can place the debuff on the paladin's current target(s). + SpellInfo const* spellInfo = eventInfo.GetSpellInfo(); + if (!spellInfo || spellInfo->SpellIconID != PALADIN_ICON_ID_HAMMER_OF_THE_RIGHTEOUS) + return; + } // don't cast triggered, spell already has SPELL_ATTR4_CAN_CAST_WHILE_CASTING attr eventInfo.GetActor()->CastSpell(eventInfo.GetProcTarget(), DoTSpell, TRIGGERED_DONT_RESET_PERIODIC_TIMER, nullptr, aurEff); -- cgit v1.2.3