From 6c67838fa04db4bee0338684466e37c4529f4f64 Mon Sep 17 00:00:00 2001 From: Ovahlord Date: Sat, 1 Sep 2018 06:20:42 +0200 Subject: [PATCH] Core/Spells: Divine Purpose is no longer getting procced when the triggering spell is already affected by Divine Purpose's proc effect --- src/server/scripts/Spells/spell_paladin.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/server/scripts/Spells/spell_paladin.cpp b/src/server/scripts/Spells/spell_paladin.cpp index 5fcf564d31..8ec52bc30a 100644 --- a/src/server/scripts/Spells/spell_paladin.cpp +++ b/src/server/scripts/Spells/spell_paladin.cpp @@ -96,7 +96,7 @@ enum PaladinSpellIcons { PALADIN_ICON_ID_RETRIBUTION_AURA = 555, PALADIN_ICOM_ID_SELFLESS_HEALER = 3924, - PALADIN_ICON_ID_ETERNAL_GLORY = 2944, + PALADIN_ICON_ID_ETERNAL_GLORY = 2944 }; enum PaladinCreatures @@ -1734,6 +1734,10 @@ class spell_pal_divine_purpose : public AuraScript bool CheckProc(ProcEventInfo& eventInfo) { + if (AuraEffect* divineEff = GetTarget()->GetAuraEffect(SPELL_PALADIN_DIVINE_PURPOSE_PROC, EFFECT_0)) + if (divineEff->IsAffectingSpell(eventInfo.GetSpellInfo())) + return false; + if (AuraEffect* aurEff = GetEffect(EFFECT_0)) return roll_chance_i(aurEff->GetAmount());