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:
@@ -2319,7 +2319,18 @@ namespace Game.Spells
|
|||||||
_allowedMechanicMask |= (1 << (int)Mechanics.Disoriented);
|
_allowedMechanicMask |= (1 << (int)Mechanics.Disoriented);
|
||||||
|
|
||||||
if (HasAttribute(SpellAttr5.UsableWhileFeared))
|
if (HasAttribute(SpellAttr5.UsableWhileFeared))
|
||||||
|
{
|
||||||
|
switch (Id)
|
||||||
|
{
|
||||||
|
case 47585: // Dispersion
|
||||||
|
case 22812: // Barkskin
|
||||||
|
_allowedMechanicMask |= (1 << (int)Mechanics.Fear) | (1 << (int)Mechanics.Horror);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
_allowedMechanicMask |= (1 << (int)Mechanics.Fear);
|
_allowedMechanicMask |= (1 << (int)Mechanics.Fear);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void ApplyAllSpellImmunitiesTo(Unit target, SpellEffectInfo effect, bool apply)
|
public void ApplyAllSpellImmunitiesTo(Unit target, SpellEffectInfo effect, bool apply)
|
||||||
|
|||||||
Reference in New Issue
Block a user