[9293] Fix stacking problem of tracking spells

This commit is contained in:
Lightguard 2010-02-03 16:13:30 +01:00
parent d4f5c0d76f
commit dae28aafc4
2 changed files with 5 additions and 4 deletions

View file

@ -282,9 +282,6 @@ SpellSpecific GetSpellSpecific(uint32 spellId)
if( spellInfo->SpellFamilyFlags & UI64LIT(0x0044000000380000) || spellInfo->SpellFamilyFlags2 & 0x00001010)
return SPELL_ASPECT;
if( spellInfo->SpellFamilyFlags2 & 0x00000002 )
return SPELL_TRACKER;
break;
}
case SPELLFAMILY_PALADIN:
@ -325,6 +322,10 @@ SpellSpecific GetSpellSpecific(uint32 spellId)
break;
}
// Tracking spells
if(IsSpellHaveAura(spellInfo, SPELL_AURA_TRACK_CREATURES) || IsSpellHaveAura(spellInfo, SPELL_AURA_TRACK_RESOURCES))
return SPELL_TRACKER;
// elixirs can have different families, but potion most ofc.
if(SpellSpecific sp = sSpellMgr.GetSpellElixirSpecific(spellInfo->Id))
return sp;