Core/Spells: Implemented PROC_ATTR_CANT_PROC_FROM_ITEM_CAST
Port From (https://github.com/TrinityCore/TrinityCore/commit/a3cc94080f9e5a246f5d6d64ef8ab5cc929da2ab)
This commit is contained in:
@@ -1712,6 +1712,9 @@ namespace Game.Spells
|
||||
if (!GetSpellInfo().HasAttribute(SpellAttr3.CanProcFromProcs) && !procEntry.AttributesMask.HasFlag(ProcAttributes.TriggeredCanProc) && !eventInfo.GetTypeMask().HasFlag(ProcFlags.AutoAttackMask))
|
||||
if (spell.IsTriggered() && !spell.GetSpellInfo().HasAttribute(SpellAttr3.NotAProc))
|
||||
return 0;
|
||||
|
||||
if (spell.m_CastItem != null && procEntry.AttributesMask.HasFlag(ProcAttributes.CantProcFromItemCast))
|
||||
return 0;
|
||||
}
|
||||
|
||||
// check don't break stealth attr present
|
||||
|
||||
Reference in New Issue
Block a user