mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-02 02:23:49 +00:00
fix(Core/Spells): Deep Wounds can proc off from non-physical spells. (#13494)
Fixes #13431
This commit is contained in:
@@ -17464,10 +17464,16 @@ bool Unit::IsTriggeredAtSpellProcEvent(Unit* victim, Aura* aura, WeaponAttackTyp
|
|||||||
// Xinef: additional check for player auras - only player spells can trigger player proc auras
|
// Xinef: additional check for player auras - only player spells can trigger player proc auras
|
||||||
// Xinef: skip victim auras
|
// Xinef: skip victim auras
|
||||||
// Excluded player shoot spells
|
// Excluded player shoot spells
|
||||||
if (!isVictim && GetTypeId() == TYPEID_PLAYER) //spellProto->SpellFamilyName != SPELLFAMILY_GENERIC)
|
// Excluded player item spells
|
||||||
if (!(EventProcFlag & (PROC_FLAG_KILL | PROC_FLAG_DEATH)) && procSpell && procSpell->SpellFamilyName == SPELLFAMILY_GENERIC && procSpell->GetCategory() != 76 &&
|
if (!isVictim && IsPlayer() && !(EventProcFlag & (PROC_FLAG_KILL | PROC_FLAG_DEATH)))
|
||||||
|
{
|
||||||
|
if (procSpell && procSpell->SpellFamilyName == SPELLFAMILY_GENERIC && procSpell->GetCategory() != 76 &&
|
||||||
|
(!eventInfo.GetProcSpell() || !eventInfo.GetProcSpell()->m_CastItem) &&
|
||||||
(!eventInfo.GetTriggerAuraSpell() || eventInfo.GetTriggerAuraSpell()->SpellFamilyName == SPELLFAMILY_GENERIC))
|
(!eventInfo.GetTriggerAuraSpell() || eventInfo.GetTriggerAuraSpell()->SpellFamilyName == SPELLFAMILY_GENERIC))
|
||||||
|
{
|
||||||
return false;
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Check spellProcEvent data requirements
|
// Check spellProcEvent data requirements
|
||||||
if (!sSpellMgr->IsSpellProcEventCanTriggeredBy(spellProto, spellProcEvent, EventProcFlag, eventInfo, active))
|
if (!sSpellMgr->IsSpellProcEventCanTriggeredBy(spellProto, spellProcEvent, EventProcFlag, eventInfo, active))
|
||||||
|
|||||||
Reference in New Issue
Block a user