aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/server/scripts/Spells/spell_paladin.cpp10
1 files changed, 8 insertions, 2 deletions
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);