From da2ef5009bec23fc88934c1a12b3d1bee0c6bff8 Mon Sep 17 00:00:00 2001 From: hondacrx Date: Wed, 22 Jul 2020 00:47:02 -0400 Subject: [PATCH] Core/Spells: Allows Dispersion and Barkskin to be used under death coil Port From (https://github.com/TrinityCore/TrinityCore/commit/87c5ddeab6b2ec691dba1bdf7f34864bb4dd78d0) --- Source/Game/Spells/SpellInfo.cs | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/Source/Game/Spells/SpellInfo.cs b/Source/Game/Spells/SpellInfo.cs index 343233f4c..4c0ce5b74 100644 --- a/Source/Game/Spells/SpellInfo.cs +++ b/Source/Game/Spells/SpellInfo.cs @@ -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)