![]() |
TrinityCore
|
#include "SpellMgr.h"#include "BattlePetMgr.h"#include "BattlefieldMgr.h"#include "BattlegroundMgr.h"#include "Chat.h"#include "DB2HotfixGenerator.h"#include "DB2Stores.h"#include "DatabaseEnv.h"#include "LanguageMgr.h"#include "Log.h"#include "MapUtils.h"#include "MotionMaster.h"#include "ObjectMgr.h"#include "Player.h"#include "SharedDefines.h"#include "Spell.h"#include "SpellAuraDefines.h"#include "SpellInfo.h"#include "StringConvert.h"#include <G3D/g3dmath.h>#include <boost/multi_index/composite_key.hpp>#include <boost/multi_index/hashed_index.hpp>#include <boost/multi_index/member.hpp>#include <boost/multi_index_container.hpp>
Include dependency graph for SpellMgr.cpp:Go to the source code of this file.
Typedefs | |
| typedef std::vector< SpellEffectEntry const * > | SpellEffectVector |
Functions | |
| bool | IsPrimaryProfessionSkill (uint32 skill) |
| bool | IsWeaponSkill (uint32 skill) |
| bool | IsPartOfSkillLine (uint32 skillId, uint32 spellId) |
| auto | _GetSpellInfo (uint32 spellId) |
| bool | LoadPetDefaultSpells_helper (CreatureTemplate const *cInfo, PetDefaultSpellsEntry &petDefSpells) |
| void | ApplySpellFix (std::initializer_list< uint32 > spellIds, void(*fix)(SpellInfo *)) |
| void | ApplySpellEffectFix (SpellInfo *spellInfo, SpellEffIndex effectIndex, void(*fix)(SpellEffectInfo *)) |
Variables | |
| PetFamilySpellsStore | sPetFamilySpellsStore |
| typedef std::vector<SpellEffectEntry const*> SpellEffectVector |
Definition at line 2494 of file SpellMgr.cpp.
| auto _GetSpellInfo | ( | uint32 | spellId | ) |
Definition at line 713 of file SpellMgr.cpp.
References Trinity::Containers::MakeIteratorPair().
Referenced by ApplySpellFix(), SpellMgr::ForEachSpellInfoDifficulty(), SpellMgr::LoadSpellInfoCorrections(), SpellMgr::LoadSpellInfoCustomAttributes(), SpellMgr::LoadSpellInfoServerside(), SpellMgr::LoadSpellRanks(), and SpellMgr::UnloadSpellInfoChains().
|
inline |
Definition at line 3379 of file SpellMgr.cpp.
References SpellInfo::GetEffect(), SpellInfo::GetEffects(), SpellInfo::Id, and TC_LOG_ERROR.
Referenced by SpellMgr::LoadSpellInfoCorrections().
Definition at line 3363 of file SpellMgr.cpp.
References _GetSpellInfo(), and TC_LOG_ERROR.
Referenced by SpellMgr::LoadSpellInfoCorrections(), and SpellMgr::LoadSpellInfoTargetCaps().
Definition at line 119 of file SpellMgr.cpp.
References sSpellMgr.
Referenced by Spell::EffectSkinning(), SpellMgr::LoadSpellInfoCustomAttributes(), and WorldObject::ModSpellCastTime().
| bool IsPrimaryProfessionSkill | ( | uint32 | skill | ) |
Definition at line 107 of file SpellMgr.cpp.
References SkillLineEntry::CategoryID, SkillLineEntry::ParentSkillLineID, SKILL_CATEGORY_PROFESSION, and sSkillLineStore.
Referenced by SpellInfo::IsPrimaryProfession(), and IsProfessionSkill().
| bool IsWeaponSkill | ( | uint32 | skill | ) |
Definition at line 113 of file SpellMgr.cpp.
References SkillLineEntry::CategoryID, SKILL_CATEGORY_WEAPON, and sSkillLineStore.
| bool LoadPetDefaultSpells_helper | ( | CreatureTemplate const * | cInfo, |
| PetDefaultSpellsEntry & | petDefSpells | ||
| ) |
Definition at line 2201 of file SpellMgr.cpp.
References CreatureTemplate::family, MAX_CREATURE_SPELL_DATA_SLOT, PetDefaultSpellsEntry::spellid, and sSpellMgr.
Referenced by SpellMgr::LoadPetDefaultSpells().
| PetFamilySpellsStore sPetFamilySpellsStore |
Definition at line 105 of file SpellMgr.cpp.
Referenced by Pet::LearnPetPassives(), and SpellMgr::LoadPetFamilySpellsStore().