[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) if( spellInfo->SpellFamilyFlags & UI64LIT(0x0044000000380000) || spellInfo->SpellFamilyFlags2 & 0x00001010)
return SPELL_ASPECT; return SPELL_ASPECT;
if( spellInfo->SpellFamilyFlags2 & 0x00000002 )
return SPELL_TRACKER;
break; break;
} }
case SPELLFAMILY_PALADIN: case SPELLFAMILY_PALADIN:
@ -325,6 +322,10 @@ SpellSpecific GetSpellSpecific(uint32 spellId)
break; 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. // elixirs can have different families, but potion most ofc.
if(SpellSpecific sp = sSpellMgr.GetSpellElixirSpecific(spellInfo->Id)) if(SpellSpecific sp = sSpellMgr.GetSpellElixirSpecific(spellInfo->Id))
return sp; return sp;

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__ #ifndef __REVISION_NR_H__
#define __REVISION_NR_H__ #define __REVISION_NR_H__
#define REVISION_NR "9292" #define REVISION_NR "9293"
#endif // __REVISION_NR_H__ #endif // __REVISION_NR_H__