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

This commit is contained in:
Keader authored and Aokromes committed 2017-06-06 07:53:19 +02:00
1 parent 2f39f51826
commit 1051412e50
1 file changed
+12 -1
+12 -1
View File
@@ -2967,7 +2967,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, uint8 effIndex, bool apply) const