*Implement enchanting vellums.

--HG--
branch : trunk
This commit is contained in:
QAston committed 2009-05-01 15:40:49 +02:00
1 parent db977d7005
commit 0f5a9cb46f
7 files changed
+98 -28

No files matched your search

+12
View File
@@ -1521,6 +1521,18 @@ bool SpellMgr::IsSkillBonusSpell(uint32 spellId) const
return false;
}
bool SpellMgr::IsSkillTypeSpell(uint32 spellId, SkillType type) const
{
SkillLineAbilityMap::const_iterator lower = GetBeginSkillLineAbilityMap(spellId);
SkillLineAbilityMap::const_iterator upper = GetEndSkillLineAbilityMap(spellId);
for (;lower!=upper;++lower)
{
if (lower->second->skillId==type)
return true;
}
return false;
}
SpellEntry const* SpellMgr::SelectAuraRankForPlayerLevel(SpellEntry const* spellInfo, uint32 playerLevel) const
{
// ignore passive spells