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

(cherry picked from commit abc749034e)
This commit is contained in:
Keader
2017-06-03 20:01:57 -03:00
committed by Carbenium
parent 1d99860757
commit 87c5ddeab6

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