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

(cherry picked from commit abc749034eb71b8a7c499541c10c71987c558e4a)
This commit is contained in:
Keader
2020-07-16 21:47:27 +02:00
committed by Carbenium
parent 1d99860757
commit 87c5ddeab6
+12 -1
View File
@@ -3382,7 +3382,18 @@ void SpellInfo::_LoadImmunityInfo()
_allowedMechanicMask |= (1 << MECHANIC_DISORIENTED);
if (HasAttribute(SPELL_ATTR5_USABLE_WHILE_FEARED))
_allowedMechanicMask |= (1 << MECHANIC_FEAR);
{
switch (Id)
{
case 47585: // Dispersion
case 22812: // Barkskin
_allowedMechanicMask |= (1 << MECHANIC_FEAR) | (1 << MECHANIC_HORROR);
break;
default:
_allowedMechanicMask |= (1 << MECHANIC_FEAR);
break;
}
}
}
void SpellInfo::ApplyAllSpellImmunitiesTo(Unit* target, SpellEffectInfo const* effect, bool apply) const