Fix tracking spells specific

This commit is contained in:
Warlockbugs 2020-01-23 15:08:11 +00:00 committed by Antz
parent f36301c474
commit 27586fde28

View File

@ -660,11 +660,12 @@ SpellSpecific GetSpellSpecific(uint32 spellId)
} }
// Tracking spells (exclude Well Fed, some other always allowed cases) // Tracking spells (exclude Well Fed, some other always allowed cases)
if ((IsSpellHaveAura(spellInfo, SPELL_AURA_TRACK_CREATURES) || if (IsSpellHaveAura(spellInfo, SPELL_AURA_TRACK_CREATURES) ||
IsSpellHaveAura(spellInfo, SPELL_AURA_TRACK_RESOURCES) || IsSpellHaveAura(spellInfo, SPELL_AURA_TRACK_STEALTHED) ||
IsSpellHaveAura(spellInfo, SPELL_AURA_TRACK_STEALTHED)) && (IsSpellHaveAura(spellInfo, SPELL_AURA_TRACK_RESOURCES) && !spellInfo->HasAttribute(SPELL_ATTR_PASSIVE) && !spellInfo->HasAttribute(SPELL_ATTR_CANT_CANCEL)))
(spellInfo->HasAttribute(SPELL_ATTR_EX_UNK17) || spellInfo->HasAttribute(SPELL_ATTR_CASTABLE_WHILE_MOUNTED))) {
{ return SPELL_TRACKER; } return SPELL_TRACKER;
}
// elixirs can have different families, but potion most ofc. // elixirs can have different families, but potion most ofc.
if (SpellSpecific sp = sSpellMgr.GetSpellElixirSpecific(spellInfo->Id)) if (SpellSpecific sp = sSpellMgr.GetSpellElixirSpecific(spellInfo->Id))