[12057] Add some static wrappers for Lookup access to SQLStorages

This commit is contained in:
Schmoozerd 2012-07-19 01:13:26 +02:00
parent 4e117d1ee8
commit f24fa870c5
12 changed files with 76 additions and 83 deletions

View file

@ -28,6 +28,18 @@
#include "MapManager.h"
#include "Unit.h"
bool IsPrimaryProfessionSkill(uint32 skill)
{
SkillLineEntry const *pSkill = sSkillLineStore.LookupEntry(skill);
if(!pSkill)
return false;
if(pSkill->categoryId != SKILL_CATEGORY_PROFESSION)
return false;
return true;
}
SpellMgr::SpellMgr()
{
}