From 5bcc54a617f99b5b435360ea83266604dbe23441 Mon Sep 17 00:00:00 2001 From: UltraNix <80540499+UltraNix@users.noreply.github.com> Date: Sun, 24 Jul 2022 18:04:44 +0200 Subject: [PATCH] fix(Scripts/Spells): Replenishment should trigger only from Mind Blast. (#12503) Fixes #11878 --- src/server/scripts/Spells/spell_priest.cpp | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/src/server/scripts/Spells/spell_priest.cpp b/src/server/scripts/Spells/spell_priest.cpp index 7c92f7ec7..384bee7da 100644 --- a/src/server/scripts/Spells/spell_priest.cpp +++ b/src/server/scripts/Spells/spell_priest.cpp @@ -842,22 +842,17 @@ class spell_pri_vampiric_touch : public AuraScript bool CheckProc(ProcEventInfo& eventInfo) { if (!eventInfo.GetActionTarget() || GetOwner()->GetGUID() != eventInfo.GetActionTarget()->GetGUID()) - return false; - - if (eventInfo.GetTypeMask() & PROC_FLAG_KILLED) { - if (SpellInfo const* spellInfo = eventInfo.GetSpellInfo()) - { - if (spellInfo->SpellFamilyName == SPELLFAMILY_PRIEST && (spellInfo->SpellFamilyFlags[0] & 0x00002000)) - { - return true; - } - } - return false; } - return eventInfo.GetActionTarget()->IsAlive(); + SpellInfo const* spellInfo = eventInfo.GetSpellInfo(); + if (!spellInfo || spellInfo->SpellFamilyName != SPELLFAMILY_PRIEST || !(spellInfo->SpellFamilyFlags[0] & 0x00002000)) + { + return false; + } + + return true; } void HandleProc(AuraEffect const* aurEff, ProcEventInfo& eventInfo)