*update aura stacking check

--HG--
branch : trunk
This commit is contained in:
QAston
2008-12-13 16:08:39 +01:00
parent 3533c094d2
commit 3ed8472e7b
3 changed files with 31 additions and 27 deletions
+12
View File
@@ -265,6 +265,8 @@ enum SpellSpecific
SPELL_FLASK_ELIXIR = 16,
SPELL_WARLOCK_CORRUPTION= 17,
SPELL_WELL_FED = 18,
SPELL_DRINK = 19,
SPELL_FOOD = 20
};
SpellSpecific GetSpellSpecific(uint32 spellId);
@@ -791,6 +793,16 @@ class SpellMgr
return 0;
}
uint32 GetLastSpellInChain(uint32 spell_id) const
{
if (!GetSpellChainNode(spell_id))
return spell_id;
SpellChainMapNext const& nextMap = GetSpellChainNext();
for(SpellChainMapNext::const_iterator itr = nextMap.lower_bound(spell_id); itr != nextMap.upper_bound(spell_id); ++itr)
spell_id=itr->second;
return spell_id;
}
uint8 IsHighRankOfSpell(uint32 spell1,uint32 spell2) const
{
SpellChainMap::const_iterator itr = mSpellChains.find(spell1);