From 0f5a9cb46f495d8a0cbf9923a4ef31734979cbc7 Mon Sep 17 00:00:00 2001 From: QAston Date: Fri, 1 May 2009 15:40:49 +0200 Subject: *Implement enchanting vellums. --HG-- branch : trunk --- src/game/SpellMgr.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/game/SpellMgr.cpp') 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 -- cgit v1.2.3