Core/Spells: Implemented SPELL_ATTR6_AURA_IS_WEAPON_PROC

Port From (https://github.com/TrinityCore/TrinityCore/commit/0710fd0ee09c6fd7cdd990d7a1d44cedb2a6034d)
This commit is contained in:
hondacrx
2022-06-01 16:09:27 -04:00
parent 6954e5833b
commit 5d06fd77be
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -1726,6 +1726,9 @@ namespace Game.Spells
if (spell.m_CastItem != null && procEntry.AttributesMask.HasFlag(ProcAttributes.CantProcFromItemCast))
return 0;
if (spell.GetSpellInfo().HasAttribute(SpellAttr4.SuppressWeaponProcs) && GetSpellInfo().HasAttribute(SpellAttr6.AuraIsWeaponProc))
return 0;
}
// check don't break stealth attr present