fix(Scripts/Spells): Replenishment should trigger only from Mind Blast. (#12503)
Fixes #11878
This commit is contained in:
@@ -842,23 +842,18 @@ class spell_pri_vampiric_touch : public AuraScript
|
|||||||
bool CheckProc(ProcEventInfo& eventInfo)
|
bool CheckProc(ProcEventInfo& eventInfo)
|
||||||
{
|
{
|
||||||
if (!eventInfo.GetActionTarget() || GetOwner()->GetGUID() != eventInfo.GetActionTarget()->GetGUID())
|
if (!eventInfo.GetActionTarget() || GetOwner()->GetGUID() != eventInfo.GetActionTarget()->GetGUID())
|
||||||
|
{
|
||||||
return false;
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if (eventInfo.GetTypeMask() & PROC_FLAG_KILLED)
|
SpellInfo const* spellInfo = eventInfo.GetSpellInfo();
|
||||||
{
|
if (!spellInfo || spellInfo->SpellFamilyName != SPELLFAMILY_PRIEST || !(spellInfo->SpellFamilyFlags[0] & 0x00002000))
|
||||||
if (SpellInfo const* spellInfo = eventInfo.GetSpellInfo())
|
|
||||||
{
|
|
||||||
if (spellInfo->SpellFamilyName == SPELLFAMILY_PRIEST && (spellInfo->SpellFamilyFlags[0] & 0x00002000))
|
|
||||||
{
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
return eventInfo.GetActionTarget()->IsAlive();
|
|
||||||
}
|
|
||||||
|
|
||||||
void HandleProc(AuraEffect const* aurEff, ProcEventInfo& eventInfo)
|
void HandleProc(AuraEffect const* aurEff, ProcEventInfo& eventInfo)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user