fix(Core/Spell): Apply AURA_STATE_FAERIE_FIRE to Faerie Fire (#5319)

This commit is contained in:
Kitzunu
2021-04-26 13:38:41 +02:00
committed by GitHub
parent 512fe7df0a
commit eac6cdd5e0

View File

@@ -2021,18 +2021,6 @@ AuraStateType SpellInfo::LoadAuraState() const
if (SpellFamilyName == SPELLFAMILY_DRUID && SpellFamilyFlags[0] & 0x400)
return AURA_STATE_FAERIE_FIRE;
// Any Spells that prevent spells can be added here.
uint32 StealthPreventionSpellList[] = { 9991, 35331, 9806, 35325 };
// Goes through each of the spells and identifies them as Stealth Prevention Spell.
for (uint32 i = 0; i < sizeof(StealthPreventionSpellList) / sizeof(uint32); i++)
{
if (Id == StealthPreventionSpellList[i])
{
return AURA_STATE_FAERIE_FIRE;
}
}
// Sting (hunter's pet ability)
if (GetCategory() == 1133)
return AURA_STATE_FAERIE_FIRE;
@@ -2068,6 +2056,12 @@ AuraStateType SpellInfo::LoadAuraState() const
case 71465: // Divine Surge
case 50241: // Oculus, Drake spell Evasive Maneuvers
return AURA_STATE_UNKNOWN22;
case 9991: // Touch of Zanzil
case 35331: // Black Blood
case 9806: // Phantom Strike
case 35325: // Glowing Blood
case 16498: // Faerie Fire
return AURA_STATE_FAERIE_FIRE;
default:
break;
}