Core/Auras: Implemented SPELL_ATTR12_ONLY_PROC_FROM_CLASS_ABILITIES and SPELL_ATTR13_ALLOW_CLASS_ABILITY_PROCS attributes

Port From (https://github.com/TrinityCore/TrinityCore/commit/33954538bc30650f639e258eeb057c1340f4c949)
This commit is contained in:
hondacrx
2023-01-11 00:47:11 -05:00
parent 44ebaec45e
commit 1ee88435c5
2 changed files with 5 additions and 2 deletions
+3
View File
@@ -1747,6 +1747,9 @@ namespace Game.Spells
if (spell.GetSpellInfo().HasAttribute(SpellAttr4.SuppressWeaponProcs) && GetSpellInfo().HasAttribute(SpellAttr6.AuraIsWeaponProc))
return 0;
if (GetSpellInfo().HasAttribute(SpellAttr12.OnlyProcFromClassAbilities) && !spell.GetSpellInfo().HasAttribute(SpellAttr13.AllowClassAbilityProcs))
return 0;
}
// check don't break stealth attr present