diff options
| author | QAston <none@none> | 2009-05-01 15:40:49 +0200 | 
|---|---|---|
| committer | QAston <none@none> | 2009-05-01 15:40:49 +0200 | 
| commit | 0f5a9cb46f495d8a0cbf9923a4ef31734979cbc7 (patch) | |
| tree | 62a37aa69d6602e91efd6ee3663814d601cd3593 /src/game/SpellMgr.cpp | |
| parent | db977d7005d0982ab672cfa0c7758b0d480b06b2 (diff) | |
*Implement enchanting vellums.
--HG--
branch : trunk
Diffstat (limited to 'src/game/SpellMgr.cpp')
| -rw-r--r-- | src/game/SpellMgr.cpp | 12 | 
1 files changed, 12 insertions, 0 deletions
diff --git a/src/game/SpellMgr.cpp b/src/game/SpellMgr.cpp index e4bee68d3a3..a22441614af 100644 --- a/src/game/SpellMgr.cpp +++ b/src/game/SpellMgr.cpp @@ -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  | 
