aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorariel- <ariel-@users.noreply.github.com>2017-03-03 20:09:05 -0300
committerariel- <ariel-@users.noreply.github.com>2017-03-03 20:09:23 -0300
commit32c5d4f53fa44d4c6263db2d248a9f73a1542fc9 (patch)
treed4a8afa7912b8d1099f1c4644b2edeeb9ff22d5e /src
parent63236f97af03b9745e1a12d1df56a0c885230caf (diff)
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
Diffstat (limited to 'src')
-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);