Core/Spells: all bleed effects should ignore armor

Port From (https://github.com/TrinityCore/TrinityCore/commit/3ea88f814a6be7487ef8a3d5c6237981d20f5063)
This commit is contained in:
hondacrx
2021-09-24 10:19:33 -04:00
parent dbfef1ee87
commit 61b14b5da0
3 changed files with 8 additions and 19 deletions
+4
View File
@@ -2630,6 +2630,10 @@ namespace Game.Entities
{
foreach (var spellEffectInfo in spellInfo.GetEffects())
{
// all bleed effects and spells ignore armor
if ((spellInfo.GetEffectMechanicMask(spellEffectInfo.EffectIndex) & (1 << (int)Mechanics.Bleed)) != 0)
spellInfo.AttributesCu |= SpellCustomAttributes.IgnoreArmor;
switch (spellEffectInfo.ApplyAuraName)
{
case AuraType.ModPossess: