mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 10:37:02 +00:00
[9293] Fix stacking problem of tracking spells
This commit is contained in:
parent
d4f5c0d76f
commit
dae28aafc4
2 changed files with 5 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue