Core/Spells: Allows Dispersion and Barkskin to be used under death coil

Port From (https://github.com/TrinityCore/TrinityCore/commit/87c5ddeab6b2ec691dba1bdf7f34864bb4dd78d0)
This commit is contained in:
hondacrx
2020-07-22 00:47:02 -04:00
parent aa0dd8ba99
commit da2ef5009b
+12 -1
View File
@@ -2319,7 +2319,18 @@ namespace Game.Spells
_allowedMechanicMask |= (1 << (int)Mechanics.Disoriented);
if (HasAttribute(SpellAttr5.UsableWhileFeared))
_allowedMechanicMask |= (1 << (int)Mechanics.Fear);
{
switch (Id)
{
case 47585: // Dispersion
case 22812: // Barkskin
_allowedMechanicMask |= (1 << (int)Mechanics.Fear) | (1 << (int)Mechanics.Horror);
break;
default:
_allowedMechanicMask |= (1 << (int)Mechanics.Fear);
break;
}
}
}
public void ApplyAllSpellImmunitiesTo(Unit target, SpellEffectInfo effect, bool apply)