mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 10:37:02 +00:00
[12057] Add some static wrappers for Lookup access to SQLStorages
This commit is contained in:
parent
4e117d1ee8
commit
f24fa870c5
12 changed files with 76 additions and 83 deletions
|
|
@ -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()
|
||||
{
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue