fix(Scripts/Spells): Replenishment should trigger only from Mind Blast. (#12503)
Fixes #11878
This commit is contained in:
parent
c057b539e6
commit
5bcc54a617
1 changed files with 7 additions and 12 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue