Core/Spells: fix auto repeat spells triggering auras

Auto repeat spells are casted as triggered and didn't register procs properly if the aura can't proc with triggered
This commit is contained in:
ariel- authored and roc13x committed 2017-05-04 00:21:13 +01:00
1 parent c71dc17135
commit a47ee2ac5a
4 files changed
+14 -4

No files matched your search

+2 -1
View File
@@ -816,7 +816,8 @@ bool SpellMgr::CanSpellTriggerProcOnEvent(SpellProcEntry const& procEntry, ProcE
return true;
// do triggered cast checks
if (!(procEntry.AttributesMask & PROC_ATTR_TRIGGERED_CAN_PROC))
// Do not consider autoattacks as triggered spells
if (!(procEntry.AttributesMask & PROC_ATTR_TRIGGERED_CAN_PROC) && !(eventInfo.GetTypeMask() & AUTO_ATTACK_PROC_FLAG_MASK))
{
if (Spell const* spell = eventInfo.GetProcSpell())
{