![]() |
TrinityCore
|
#include <SpellMgr.h>
Static Public Member Functions | |
| static SpellMgr * | instance () |
| static bool | IsSpellValid (SpellInfo const *spellInfo, Player *player=nullptr, bool msg=true) |
| Some checks for spells, to prevent adding deprecated/broken spells for trainers, spell book, etc. | |
| static bool | CanSpellTriggerProcOnEvent (SpellProcEntry const &procEntry, ProcEventInfo &eventInfo) |
| static CreatureImmunities const * | GetCreatureImmunities (int32 creatureImmunitiesId) |
Private Member Functions | |
| SpellMgr () | |
| ~SpellMgr () | |
Definition at line 646 of file SpellMgr.h.
|
private |
Definition at line 129 of file SpellMgr.cpp.
|
private |
Definition at line 131 of file SpellMgr.cpp.
References UnloadSpellInfoStore().
|
delete |
|
delete |
| bool SpellMgr::AddSameEffectStackRuleSpellGroups | ( | SpellInfo const * | spellInfo, |
| AuraType | auraType, | ||
| SpellEffectValue | amount, | ||
| std::map< SpellGroup, SpellEffectValue > & | groups | ||
| ) | const |
Definition at line 413 of file SpellMgr.cpp.
References SpellInfo::GetFirstRankSpell(), GetSpellSpellGroupMapBounds(), SpellInfo::Id, and mSpellSameEffectStack.
|
inline |
Definition at line 737 of file SpellMgr.h.
References ASSERT.
Referenced by LoadSpellGroupStackRules(), and LoadSpellRanks().
|
static |
Definition at line 524 of file SpellMgr.cpp.
References SpellPowerCost::Amount, SpellProcEntry::AttributesMask, DONE_HIT_PROC_FLAG_MASK, ProcEventInfo::GetActionTarget(), ProcEventInfo::GetActor(), ProcEventInfo::GetHitMask(), Spell::GetPowerCost(), ProcEventInfo::GetProcSpell(), ProcEventInfo::GetSchoolMask(), ProcEventInfo::GetSpellInfo(), ProcEventInfo::GetSpellPhaseMask(), ProcEventInfo::GetSpellTypeMask(), ProcEventInfo::GetTypeMask(), SpellProcEntry::HitMask, PROC_ATTR_REQ_EXP_OR_HONOR, PROC_ATTR_REQ_POWER_COST, PROC_FLAG_DEATH, PROC_FLAG_HEARTBEAT, PROC_FLAG_KILL, PROC_HIT_ABSORB, PROC_HIT_CRITICAL, PROC_HIT_NORMAL, PROC_SPELL_PHASE_CAST, SpellProcEntry::ProcFlags, REQ_SPELL_PHASE_PROC_FLAG_MASK, SpellProcEntry::SchoolMask, SPELL_PROC_FLAG_MASK, SpellProcEntry::SpellFamilyMask, SpellProcEntry::SpellFamilyName, SpellProcEntry::SpellPhaseMask, SpellProcEntry::SpellTypeMask, TAKEN_HIT_PROC_FLAG_MASK, and Object::ToPlayer().
Referenced by Aura::GetProcEffectMask().
| SpellGroupStackRule SpellMgr::CheckSpellGroupStackRules | ( | SpellInfo const * | spellInfo1, |
| SpellInfo const * | spellInfo2 | ||
| ) | const |
Definition at line 447 of file SpellMgr.cpp.
References ASSERT, SpellInfo::GetFirstRankSpell(), GetSpellGroupSpellMapBounds(), GetSpellSpellGroupMapBounds(), SpellInfo::Id, IsSpellMemberOfSpellGroup(), mSpellGroupStack, and SPELL_GROUP_STACK_RULE_DEFAULT.
| void SpellMgr::ForEachSpellInfo | ( | std::function< void(SpellInfo const *)> | callback | ) |
Definition at line 718 of file SpellMgr.cpp.
| void SpellMgr::ForEachSpellInfoDifficulty | ( | uint32 | spellId, |
| std::function< void(SpellInfo const *)> | callback | ||
| ) |
Definition at line 724 of file SpellMgr.cpp.
References _GetSpellInfo().
|
static |
Definition at line 687 of file SpellMgr.cpp.
References Trinity::Containers::MapGetValuePtr().
Referenced by SpellInfo::_LoadImmunityInfo(), npc_commandscript::HandleNpcInfoCommand(), Creature::LoadTemplateImmunities(), and Unit::UpdateSpeed().
Definition at line 243 of file SpellMgr.cpp.
References SpellChainNode::first, GetSpellChainNode(), and SpellInfo::Id.
Referenced by GetSpellSpellGroupMapBounds(), and GetSpellThreatEntry().
Definition at line 251 of file SpellMgr.cpp.
References GetSpellChainNode().
Definition at line 5659 of file SpellMgr.cpp.
References mSpellTotemModel.
Definition at line 259 of file SpellMgr.cpp.
References GetSpellChainNode().
Definition at line 615 of file SpellMgr.cpp.
References mSpellPetAuraMap.
| PetDefaultSpellsEntry const * SpellMgr::GetPetDefaultSpellsEntry | ( | int32 | id | ) | const |
Definition at line 654 of file SpellMgr.cpp.
References mPetDefaultSpellsMap.
| PetLevelupSpellSet const * SpellMgr::GetPetLevelupSpellList | ( | uint32 | petFamily | ) | const |
Definition at line 645 of file SpellMgr.cpp.
References mPetLevelupSpellMap.
Definition at line 268 of file SpellMgr.cpp.
References GetSpellChainNode().
| void SpellMgr::GetSetOfSpellsInSpellGroup | ( | SpellGroup | group_id, |
| std::set< uint32 > & | foundSpells | ||
| ) | const |
Definition at line 386 of file SpellMgr.cpp.
References GetSetOfSpellsInSpellGroup().
Referenced by GetSetOfSpellsInSpellGroup(), GetSetOfSpellsInSpellGroup(), LoadSpellGroups(), and LoadSpellGroupStackRules().
| void SpellMgr::GetSetOfSpellsInSpellGroup | ( | SpellGroup | group_id, |
| std::set< uint32 > & | foundSpells, | ||
| std::set< SpellGroup > & | usedGroups | ||
| ) | const |
Definition at line 392 of file SpellMgr.cpp.
References GetSetOfSpellsInSpellGroup(), and GetSpellGroupSpellMapBounds().
| SkillLineAbilityMapBounds SpellMgr::GetSkillLineAbilityMapBounds | ( | uint32 | spell_id | ) | const |
Definition at line 610 of file SpellMgr.cpp.
References mSkillLineAbilityMap.
| SpellAreaForAreaMapBounds SpellMgr::GetSpellAreaForAreaMapBounds | ( | uint32 | area_id | ) | const |
Definition at line 682 of file SpellMgr.cpp.
References mSpellAreaForAreaMap.
| SpellAreaForAuraMapBounds SpellMgr::GetSpellAreaForAuraMapBounds | ( | uint32 | spell_id | ) | const |
Definition at line 677 of file SpellMgr.cpp.
References mSpellAreaForAuraMap.
Referenced by LoadSpellAreas().
| SpellAreaForQuestMapBounds SpellMgr::GetSpellAreaForQuestEndMapBounds | ( | uint32 | quest_id | ) | const |
Definition at line 672 of file SpellMgr.cpp.
References mSpellAreaForQuestEndMap.
| SpellAreaForQuestMapBounds SpellMgr::GetSpellAreaForQuestMapBounds | ( | uint32 | quest_id | ) | const |
Definition at line 667 of file SpellMgr.cpp.
References mSpellAreaForQuestMap.
| SpellAreaMapBounds SpellMgr::GetSpellAreaMapBounds | ( | uint32 | spell_id | ) | const |
Definition at line 662 of file SpellMgr.cpp.
References mSpellAreaMap.
Referenced by LoadSpellAreas().
| SpellChainNode const * SpellMgr::GetSpellChainNode | ( | uint32 | spell_id | ) | const |
Definition at line 234 of file SpellMgr.cpp.
References mSpellChains.
Referenced by GetFirstSpellInChain(), GetLastSpellInChain(), GetNextSpellInChain(), GetPrevSpellInChain(), GetSpellRank(), and GetSpellWithRank().
| SpellEnchantProcEntry const * SpellMgr::GetSpellEnchantProcEvent | ( | uint32 | enchId | ) | const |
Definition at line 624 of file SpellMgr.cpp.
References mSpellEnchantProcEventMap.
| SpellGroupSpellMapBounds SpellMgr::GetSpellGroupSpellMapBounds | ( | SpellGroup | group_id | ) | const |
Definition at line 381 of file SpellMgr.cpp.
References mSpellGroupSpell.
Referenced by CheckSpellGroupStackRules(), GetSetOfSpellsInSpellGroup(), and LoadSpellGroupStackRules().
| SpellGroupStackRule SpellMgr::GetSpellGroupStackRule | ( | SpellGroup | groupid | ) | const |
Definition at line 494 of file SpellMgr.cpp.
References mSpellGroupStack, and SPELL_GROUP_STACK_RULE_DEFAULT.
| SpellInfo const * SpellMgr::GetSpellInfo | ( | uint32 | spellId, |
| Difficulty | difficulty | ||
| ) | const |
Definition at line 692 of file SpellMgr.cpp.
References sDifficultyStore.
Referenced by LoadPetFamilySpellsStore(), LoadPetLevelupSpellMap(), LoadSpellAreas(), LoadSpellGroups(), LoadSpellLearnSpells(), LoadSpellLinked(), LoadSpellPetAuras(), LoadSpellProcs(), LoadSpellRanks(), LoadSpellRequired(), LoadSpellTargetPositions(), LoadSpellThreats(), and LoadSpellTotemModel().
| Trinity::IteratorPair< SpellLearnedBySpellMap::const_iterator > SpellMgr::GetSpellLearnedBySpellMapBounds | ( | uint32 | learnedSpellId | ) | const |
Definition at line 346 of file SpellMgr.cpp.
References Trinity::Containers::MapEqualRange(), and mSpellLearnedBySpells.
| SpellLearnSkillNode const * SpellMgr::GetSpellLearnSkill | ( | uint32 | spell_id | ) | const |
Definition at line 318 of file SpellMgr.cpp.
References mSpellLearnSkills.
| SpellLearnSpellMapBounds SpellMgr::GetSpellLearnSpellMapBounds | ( | uint32 | spell_id | ) | const |
Definition at line 327 of file SpellMgr.cpp.
References mSpellLearnSpells.
Referenced by IsSpellLearnToSpell(), and LoadSpellLearnSpells().
| std::vector< int32 > const * SpellMgr::GetSpellLinked | ( | SpellLinkedType | type, |
| uint32 | spell_id | ||
| ) | const |
Definition at line 640 of file SpellMgr.cpp.
References Trinity::Containers::MapGetValuePtr(), and mSpellLinkedMap.
| SpellProcEntry const * SpellMgr::GetSpellProcEntry | ( | SpellInfo const * | spellInfo | ) | const |
Definition at line 503 of file SpellMgr.cpp.
References SpellInfo::Difficulty, SpellInfo::Id, Trinity::Containers::MapGetValuePtr(), and sDifficultyStore.
Referenced by LoadSpellProcs().
Definition at line 277 of file SpellMgr.cpp.
References GetSpellChainNode().
| SpellSpellGroupMapBounds SpellMgr::GetSpellSpellGroupMapBounds | ( | uint32 | spell_id | ) | const |
Definition at line 364 of file SpellMgr.cpp.
References GetFirstSpellInChain(), and mSpellSpellGroup.
Referenced by AddSameEffectStackRuleSpellGroups(), CheckSpellGroupStackRules(), and IsSpellMemberOfSpellGroup().
| Trinity::IteratorPair< SpellRequiredMap::const_iterator > SpellMgr::GetSpellsRequiredForSpellBounds | ( | uint32 | spell_id | ) | const |
Definition at line 297 of file SpellMgr.cpp.
References Trinity::Containers::MapEqualRange(), and mSpellReq.
| SpellsRequiringSpellMapBounds SpellMgr::GetSpellsRequiringSpellBounds | ( | uint32 | spell_id | ) | const |
Definition at line 302 of file SpellMgr.cpp.
References mSpellsReqSpell.
Referenced by IsSpellRequiringSpell().
| SpellTargetPosition const * SpellMgr::GetSpellTargetPosition | ( | uint32 | spell_id, |
| SpellEffIndex | effIndex | ||
| ) | const |
Definition at line 351 of file SpellMgr.cpp.
References mSpellTargetPositions.
| Trinity::IteratorPair< SpellTargetPositionMap::const_iterator > SpellMgr::GetSpellTargetPositions | ( | uint32 | spell_id, |
| SpellEffIndex | effIndex | ||
| ) | const |
Definition at line 359 of file SpellMgr.cpp.
References Trinity::Containers::MapEqualRange(), and mSpellTargetPositions.
| SpellThreatEntry const * SpellMgr::GetSpellThreatEntry | ( | uint32 | spellID | ) | const |
Definition at line 595 of file SpellMgr.cpp.
References GetFirstSpellInChain(), and mSpellThreatMap.
Definition at line 285 of file SpellMgr.cpp.
References GetSpellChainNode(), and GetSpellWithRank().
Referenced by GetSpellWithRank().
|
static |
| bool SpellMgr::IsArenaAllowedEnchancment | ( | uint32 | ench_id | ) | const |
Definition at line 632 of file SpellMgr.cpp.
References AllowEnteringArena, and sSpellItemEnchantmentStore.
| bool SpellMgr::IsSpellLearnSpell | ( | uint32 | spell_id | ) | const |
Definition at line 332 of file SpellMgr.cpp.
References mSpellLearnSpells.
Definition at line 337 of file SpellMgr.cpp.
References GetSpellLearnSpellMapBounds().
| bool SpellMgr::IsSpellMemberOfSpellGroup | ( | uint32 | spellid, |
| SpellGroup | groupid | ||
| ) | const |
Definition at line 370 of file SpellMgr.cpp.
References GetSpellSpellGroupMapBounds().
Referenced by CheckSpellGroupStackRules().
Definition at line 307 of file SpellMgr.cpp.
References GetSpellsRequiringSpellBounds().
Referenced by LoadSpellRequired().
|
static |
Some checks for spells, to prevent adding deprecated/broken spells for trainers, spell book, etc.
Definition at line 143 of file SpellMgr.cpp.
References DIFFICULTY_NONE, SpellInfo::GetEffects(), Player::GetSession(), SpellInfo::Id, SpellInfo::IsLootCrafting(), IsSpellValid(), MAX_SPELL_REAGENTS, ChatHandler::PSendSysMessage(), SpellInfo::Reagent, sObjectMgr, SPELL_EFFECT_CREATE_ITEM, SPELL_EFFECT_CREATE_LOOT, SPELL_EFFECT_LEARN_SPELL, sSpellMgr, and TC_LOG_ERROR.
Referenced by Player::AddPvpTalent(), Player::AddSpell(), Player::AddTalent(), cast_commandscript::CheckSpellExistsAndIsValid(), learn_commandscript::HandleLearnAllGMCommand(), learn_commandscript::HandleLearnAllTalentsCommand(), learn_commandscript::HandleLearnCommand(), learn_commandscript::HandleLearnMySpellsCommand(), learn_commandscript::HandleLearnSkillRecipesHelper(), pet_commandscript::HandlePetLearnCommand(), IsSpellValid(), ObjectMgr::LoadQuests(), and Player::ResetSpells().
| void SpellMgr::LoadPetDefaultSpells | ( | ) |
Definition at line 2249 of file SpellMgr.cpp.
References DIFFICULTY_NONE, CreatureTemplate::Entry, getMSTime(), GetMSTimeDiffToNow(), LoadPetDefaultSpells_helper(), MAX_CREATURE_SPELL_DATA_SLOT, mPetDefaultSpellsMap, sObjectMgr, SPELL_EFFECT_SUMMON, SPELL_EFFECT_SUMMON_PET, PetDefaultSpellsEntry::spellid, CreatureTemplate::spells, and TC_LOG_INFO.
| void SpellMgr::LoadPetFamilySpellsStore | ( | ) |
Definition at line 5575 of file SpellMgr.cpp.
References AutomaticCharLevel, DIFFICULTY_NONE, GetSpellInfo(), SpellInfo::Id, SpellInfo::IsPassive(), sCreatureFamilyStore, sPetFamilySpellsStore, sSkillLineAbilityStore, and sSpellLevelsStore.
| void SpellMgr::LoadPetLevelupSpellMap | ( | ) |
Definition at line 2152 of file SpellMgr.cpp.
References AutomaticCharLevel, DIFFICULTY_NONE, getMSTime(), GetMSTimeDiffToNow(), GetSpellInfo(), SpellInfo::Id, mPetLevelupSpellMap, sCreatureFamilyStore, sDB2Manager, CreatureFamilyEntry::SkillLine, SpellInfo::SpellLevel, and TC_LOG_INFO.
| void SpellMgr::LoadSkillLineAbilityMap | ( | ) |
Definition at line 1952 of file SpellMgr.cpp.
References getMSTime(), GetMSTimeDiffToNow(), mSkillLineAbilityMap, sSkillLineAbilityStore, and TC_LOG_INFO.
| void SpellMgr::LoadSpellAreas | ( | ) |
Definition at line 2296 of file SpellMgr.cpp.
References SpellArea::areaId, SpellArea::auraSpell, DIFFICULTY_NONE, SpellArea::flags, SpellArea::gender, GENDER_FEMALE, GENDER_MALE, GENDER_NONE, Field::GetInt32(), getMSTime(), GetMSTimeDiffToNow(), GetSpellAreaForAuraMapBounds(), GetSpellAreaMapBounds(), GetSpellInfo(), Field::GetUInt32(), Field::GetUInt64(), Field::GetUInt8(), Trinity::RaceMask< T, N >::IsEmpty(), mSpellAreaForAreaMap, mSpellAreaForAuraMap, mSpellAreaForQuestEndMap, mSpellAreaForQuestMap, mSpellAreaMap, SpellArea::questEnd, SpellArea::questEndStatus, SpellArea::questStart, SpellArea::questStartStatus, SpellArea::raceMask, RACEMASK_ALL_PLAYABLE, Trinity::RaceMask< T, N >::RawValue, sAreaTableStore, sObjectMgr, SPELL_AREA_FLAG_AUTOCAST, SPELL_ATTR0_NO_AURA_CANCEL, SpellArea::spellId, TC_LOG_ERROR, TC_LOG_INFO, and WorldDatabase.
| void SpellMgr::LoadSpellEnchantProcData | ( | ) |
Definition at line 2031 of file SpellMgr.cpp.
References SpellEnchantProcEntry::AttributesMask, SpellEnchantProcEntry::Chance, Field::GetFloat(), getMSTime(), GetMSTimeDiffToNow(), Field::GetUInt32(), SpellEnchantProcEntry::HitMask, mSpellEnchantProcEventMap, SpellEnchantProcEntry::ProcsPerMinute, sSpellItemEnchantmentStore, TC_LOG_ERROR, TC_LOG_INFO, and WorldDatabase.
| void SpellMgr::LoadSpellGroups | ( | ) |
Definition at line 1266 of file SpellMgr.cpp.
References DIFFICULTY_NONE, Field::GetInt32(), getMSTime(), GetMSTimeDiffToNow(), SpellInfo::GetRank(), GetSetOfSpellsInSpellGroup(), GetSpellInfo(), Field::GetUInt32(), mSpellGroupSpell, mSpellSpellGroup, SPELL_GROUP_CORE_RANGE_MAX, TC_LOG_ERROR, TC_LOG_INFO, and WorldDatabase.
| void SpellMgr::LoadSpellGroupStackRules | ( | ) |
Definition at line 1345 of file SpellMgr.cpp.
References AssertSpellInfo(), DIFFICULTY_NONE, SpellInfo::GetEffects(), Field::GetInt8(), getMSTime(), GetMSTimeDiffToNow(), SpellInfo::GetNextRankSpell(), GetSetOfSpellsInSpellGroup(), GetSpellGroupSpellMapBounds(), Field::GetUInt32(), SpellInfo::HasAura(), mSpellGroupStack, mSpellSameEffectStack, SPELL_AURA_MOD_MELEE_HASTE, SPELL_AURA_MOD_MELEE_RANGED_HASTE, SPELL_AURA_MOD_RANGED_HASTE, SPELL_GROUP_STACK_RULE_EXCLUSIVE_SAME_EFFECT, SPELL_GROUP_STACK_RULE_MAX, TC_LOG_ERROR, TC_LOG_INFO, and WorldDatabase.
| void SpellMgr::LoadSpellInfoCorrections | ( | ) |
HACK: This spell break quest complete for alliance and on retail not used
Definition at line 3390 of file SpellMgr.cpp.
References _GetSpellInfo(), Action, SpellInfo::ActiveIconFileDataId, Anim, SpellEffectInfo::ApplyAuraName, SpellEffectInfo::ApplyAuraPeriod, ApplySpellEffectFix(), ApplySpellFix(), SpellInfo::Attributes, SpellInfo::AttributesCu, SpellInfo::AttributesEx, SpellInfo::AttributesEx2, SpellInfo::AttributesEx3, SpellInfo::AttributesEx4, SpellInfo::AttributesEx5, SpellInfo::AttributesEx6, SpellInfo::AttributesEx8, SpellInfo::AttributesEx9, SpellInfo::AuraInterruptFlags, SpellEffectInfo::BasePoints, SpellInfo::ChannelInterruptFlags, SpellInfo::ChannelInterruptFlags2, SpellInfo::ConeAngle, Damage, SpellInfo::DurationEntry, SpellEffectInfo::Effect, EFFECT_0, EFFECT_1, EFFECT_2, EFFECT_3, EFFECT_RADIUS_0_5_YARDS, EFFECT_RADIUS_10_YARDS, EFFECT_RADIUS_12_YARDS, EFFECT_RADIUS_15_YARDS, EFFECT_RADIUS_200_YARDS, EFFECT_RADIUS_25_YARDS, EFFECT_RADIUS_45_YARDS, EFFECT_RADIUS_50000_YARDS, FORM_TREE_OF_LIFE, SpellInfo::GetEffects(), SpellInfo::GetMaxRange(), getMSTime(), SpellInfo::HasAttribute(), SpellInfo::HasAura(), HostileActionReceived, IN_MILLISECONDS, SpellInfo::IsSingleTarget(), LeaveWorld, SpellInfo::MaxAffectedTargets, SpellInfo::Mechanic, MECHANIC_NONE, MECHANIC_STUN, SpellEffectInfo::MiscValue, SpellEffectInfo::MiscValueB, Moving, SpellInfo::NegativeEffects, None, SpellInfo::ProcChance, SpellInfo::ProcFlags, SpellInfo::RangeEntry, SpellInfo::RecoveryTime, SpellInfo::RequiredAreasID, SpellEffectInfo::Scaling, flag128::Set(), SpellInfo::Speed, SPEED_CHARGE, SPELL_ATTR0_AURA_IS_DEBUFF, SPELL_ATTR0_CU_AURA_CANNOT_BE_SAVED, SPELL_ATTR0_NO_IMMUNITIES, SPELL_ATTR0_ONLY_OUTDOORS, SPELL_ATTR0_PASSIVE, SPELL_ATTR1_EXCLUDE_CASTER, SPELL_ATTR1_IMMUNITY_PURGES_EFFECT, SPELL_ATTR1_NO_THREAT, SPELL_ATTR2_ALLOW_DEAD_TARGET, SPELL_ATTR2_CANT_CRIT, SPELL_ATTR2_IGNORE_LINE_OF_SIGHT, SPELL_ATTR2_NO_INITIAL_THREAT, SPELL_ATTR3_ALLOW_AURA_WHILE_DEAD, SPELL_ATTR3_DOT_STACKING_RULE, SPELL_ATTR3_IGNORE_CASTER_MODIFIERS, SPELL_ATTR4_AURA_IS_BUFF, SPELL_ATTR4_IGNORE_DAMAGE_TAKEN_MODIFIERS, SPELL_ATTR5_AI_DOESNT_FACE_TARGET, SPELL_ATTR5_EXTRA_INITIAL_PERIOD, SPELL_ATTR6_IGNORE_CASTER_DAMAGE_MODIFIERS, SPELL_ATTR6_IGNORE_PHASE_SHIFT, SPELL_ATTR8_CAN_ATTACK_IMMUNE_PC, SPELL_ATTR9_FORCE_DEST_LOCATION, SPELL_ATTR9_MISSILE_SPEED_IS_DELAY_IN_SEC, SPELL_AURA_CONTROL_VEHICLE, SPELL_AURA_DUMMY, SPELL_AURA_MOD_DECREASE_SPEED, SPELL_AURA_PERIODIC_TRIGGER_SPELL, SPELL_AURA_PROC_TRIGGER_SPELL, SPELL_AURA_SPELL_MAGNET, SPELL_EFFECT_APPLY_AURA, SPELL_EFFECT_CHARGE, SPELL_EFFECT_CHARGE_DEST, SPELL_EFFECT_CREATE_CONVERSATION, SPELL_EFFECT_DUMMY, SPELL_EFFECT_JUMP, SPELL_EFFECT_JUMP_DEST, SPELL_EFFECT_LEAP_BACK, SPELL_EFFECT_NONE, SpellEffectInfo::SpellClassMask, SpellInfo::SpellFamilyFlags, SpellInfo::SpellFamilyName, sSpellDurationStore, sSpellRadiusStore, sSpellRangeStore, SpellInfo::Stances, TARGET_DEST_CASTER, TARGET_DEST_CASTER_LEFT, TARGET_DEST_DB, TARGET_DEST_DEST, TARGET_DEST_TRAJ, TARGET_SELECT_CATEGORY_CONE, TARGET_UNIT_CASTER, TARGET_UNIT_NEARBY_ENTRY, TARGET_UNIT_PET, TARGET_UNIT_SRC_AREA_ALLY, TARGET_UNIT_SRC_AREA_ENTRY, TARGET_UNIT_TARGET_ANY, TARGET_UNIT_TARGET_ENEMY, TargetA, SpellEffectInfo::TargetA, SpellEffectInfo::TargetARadiusEntry, TargetB, SpellEffectInfo::TargetB, SpellEffectInfo::TargetBRadiusEntry, SpellEffectInfo::TriggerSpell, UI64LIT, and SpellEffectInfo::ScalingInfo::Variance.
| void SpellMgr::LoadSpellInfoCustomAttributes | ( | ) |
Definition at line 2981 of file SpellMgr.cpp.
References _GetSpellInfo(), SpellInfo::_InitializeExplicitTargetMask(), SpellInfo::_InitializeSpellPositivity(), SpellInfo::_visuals, SpellInfo::AttributesCu, DIFFICULTY_NONE, SpellItemEnchantmentEntry::Effect, SpellItemEnchantmentEntry::EffectArg, SpellInfo::GetEffects(), getMSTime(), GetMSTimeDiffToNow(), Field::GetUInt32(), SpellInfo::HasAttribute(), SpellInfo::HasAuraInterruptFlag(), SpellInfo::Id, IsPartOfSkillLine(), ITEM_ENCHANTMENT_TYPE_COMBAT_SPELL, LeaveWorld, MAX_ITEM_ENCHANTMENT_EFFECTS, MECHANIC_BLEED, SpellInfo::SchoolMask, sDB2Manager, SKILL_ENCHANTING, sLiquidTypeStore, SpellInfo::Speed, SPELL_ATTR0_CU_AURA_CANNOT_BE_SAVED, SPELL_ATTR0_CU_AURA_CC, SPELL_ATTR0_CU_BINARY_SPELL, SPELL_ATTR0_CU_CAN_CRIT, SPELL_ATTR0_CU_CHARGE, SPELL_ATTR0_CU_CONE_LINE, SPELL_ATTR0_CU_DIRECT_DAMAGE, SPELL_ATTR0_CU_ENCHANT_PROC, SPELL_ATTR0_CU_IGNORE_ARMOR, SPELL_ATTR0_CU_IS_TALENT, SPELL_ATTR0_CU_NEEDS_AMMO_DATA, SPELL_ATTR0_CU_NO_INITIAL_THREAT, SPELL_ATTR0_CU_PICKPOCKET, SPELL_ATTR0_CU_SCHOOLMASK_NORMAL_WITH_MAGIC, SPELL_ATTR0_CU_SHARE_DAMAGE, SPELL_ATTR0_NO_IMMUNITIES, SPELL_ATTR2_CANT_CRIT, SPELL_ATTR3_ALWAYS_HIT, SPELL_AURA_AOE_CHARM, SPELL_AURA_BATTLEGROUND_PLAYER_POSITION, SPELL_AURA_BATTLEGROUND_PLAYER_POSITION_FACTIONAL, SPELL_AURA_BIND_SIGHT, SPELL_AURA_CONTROL_VEHICLE, SPELL_AURA_DUMMY, SPELL_AURA_MOD_CHARM, SPELL_AURA_MOD_CONFUSE, SPELL_AURA_MOD_FEAR, SPELL_AURA_MOD_POSSESS, SPELL_AURA_MOD_POSSESS_PET, SPELL_AURA_MOD_STUN, SPELL_AURA_OPEN_STABLE, SPELL_AURA_PERIODIC_DAMAGE, SPELL_AURA_PERIODIC_DAMAGE_PERCENT, SPELL_AURA_PERIODIC_DUMMY, SPELL_AURA_PERIODIC_HEALTH_FUNNEL, SPELL_AURA_PERIODIC_LEECH, SPELL_AURA_PERIODIC_TRIGGER_SPELL, SPELL_AURA_PERIODIC_TRIGGER_SPELL_FROM_CLIENT, SPELL_AURA_PERIODIC_TRIGGER_SPELL_WITH_VALUE, SPELL_AURA_PROC_TRIGGER_SPELL, SPELL_EFFECT_APPLY_AREA_AURA_ENEMY, SPELL_EFFECT_APPLY_AREA_AURA_FRIEND, SPELL_EFFECT_APPLY_AREA_AURA_OWNER, SPELL_EFFECT_APPLY_AREA_AURA_PARTY, SPELL_EFFECT_APPLY_AREA_AURA_PARTY_NONRANDOM, SPELL_EFFECT_APPLY_AREA_AURA_PET, SPELL_EFFECT_APPLY_AREA_AURA_RAID, SPELL_EFFECT_APPLY_AREA_AURA_SUMMONS, SPELL_EFFECT_APPLY_AURA, SPELL_EFFECT_APPLY_AURA_ON_PET, SPELL_EFFECT_CHARGE, SPELL_EFFECT_CHARGE_DEST, SPELL_EFFECT_DAMAGE_FROM_MAX_HEALTH_PCT, SPELL_EFFECT_ENCHANT_HELD_ITEM, SPELL_EFFECT_ENCHANT_ITEM, SPELL_EFFECT_ENCHANT_ITEM_PRISMATIC, SPELL_EFFECT_ENCHANT_ITEM_TEMPORARY, SPELL_EFFECT_ENERGIZE, SPELL_EFFECT_ENERGIZE_PCT, SPELL_EFFECT_HEAL, SPELL_EFFECT_HEAL_MAX_HEALTH, SPELL_EFFECT_HEAL_MECHANICAL, SPELL_EFFECT_HEAL_PCT, SPELL_EFFECT_HEALTH_LEECH, SPELL_EFFECT_INTERRUPT_CAST, SPELL_EFFECT_JUMP, SPELL_EFFECT_JUMP_DEST, SPELL_EFFECT_LEAP_BACK, SPELL_EFFECT_NORMALIZED_WEAPON_DMG, SPELL_EFFECT_PERSISTENT_AREA_AURA, SPELL_EFFECT_PICKPOCKET, SPELL_EFFECT_POWER_BURN, SPELL_EFFECT_POWER_DRAIN, SPELL_EFFECT_SCHOOL_DAMAGE, SPELL_EFFECT_TRIGGER_SPELL, SPELL_EFFECT_TRIGGER_SPELL_WITH_VALUE, SPELL_EFFECT_WEAPON_DAMAGE, SPELL_EFFECT_WEAPON_DAMAGE_NOSCHOOL, SPELL_EFFECT_WEAPON_PERCENT_DAMAGE, SPELL_SCHOOL_MASK_MAGIC, SPELL_SCHOOL_MASK_NORMAL, SPELLFAMILY_DRUID, SPELLFAMILY_GENERIC, SPELLFAMILY_MAGE, SPELLFAMILY_WARLOCK, SPELLFAMILY_WARRIOR, SpellInfo::SpellFamilyFlags, SpellInfo::SpellFamilyName, SpellVisualEntry::SpellVisualMissileSetID, sSpellItemEnchantmentStore, sSpellMgr, sSpellVisualEffectNameStore, sSpellVisualStore, sTalentStore, TC_LOG_ERROR, TC_LOG_INFO, SpellVisualEffectNameEntry::Type, UI64LIT, UnitAmmoBasic, UnitAmmoPreferred, SpellInfo::Width, and WorldDatabase.
| void SpellMgr::LoadSpellInfoDiminishing | ( | ) |
Definition at line 5339 of file SpellMgr.cpp.
References SpellInfo::_LoadSpellDiminishInfo(), getMSTime(), GetMSTimeDiffToNow(), and TC_LOG_INFO.
| void SpellMgr::LoadSpellInfoImmunities | ( | ) |
Definition at line 5349 of file SpellMgr.cpp.
References SpellInfo::_LoadImmunityInfo(), AoETarget, CreatureImmunities::Aura, ChainTarget, CreatureImmunities::DispelType, CreatureImmunities::Effect, Field::GetInt16(), Field::GetInt32(), Field::GetInt64(), Field::GetInt8(), getMSTime(), GetMSTimeDiffToNow(), CreatureImmunities::Mechanic, CreatureImmunities::Other, CreatureImmunities::School, TC_LOG_ERROR, TC_LOG_INFO, Trinity::Tokenize(), TOTAL_AURAS, TOTAL_SPELL_EFFECTS, and WorldDatabase.
| void SpellMgr::LoadSpellInfoServerside | ( | ) |
Definition at line 2735 of file SpellMgr.cpp.
References _GetSpellInfo(), SpellInfo::Attributes, SpellInfo::AttributesEx, SpellInfo::AttributesEx10, SpellInfo::AttributesEx11, SpellInfo::AttributesEx12, SpellInfo::AttributesEx13, SpellInfo::AttributesEx14, SpellInfo::AttributesEx15, SpellInfo::AttributesEx16, SpellInfo::AttributesEx2, SpellInfo::AttributesEx3, SpellInfo::AttributesEx4, SpellInfo::AttributesEx5, SpellInfo::AttributesEx6, SpellInfo::AttributesEx7, SpellInfo::AttributesEx8, SpellInfo::AttributesEx9, SpellInfo::AuraInterruptFlags, SpellInfo::AuraInterruptFlags2, SpellInfo::BaseLevel, SpellInfo::CasterAuraSpell, SpellInfo::CasterAuraState, SpellInfo::CasterAuraType, SpellInfo::CastTimeEntry, SpellInfo::CategoryId, SpellInfo::CategoryRecoveryTime, SpellInfo::ChannelInterruptFlags, SpellInfo::ChannelInterruptFlags2, SpellInfo::ChargeCategoryId, SpellInfo::ConeAngle, SpellInfo::ContentTuningId, DIFFICULTY_NONE, SpellInfo::Dispel, SpellInfo::DmgClass, SpellInfo::DurationEntry, SpellEffectEntry::EffectIndex, SpellInfo::EquippedItemClass, SpellInfo::EquippedItemInventoryTypeMask, SpellInfo::EquippedItemSubClassMask, SpellInfo::ExcludeCasterAuraSpell, SpellInfo::ExcludeCasterAuraState, SpellInfo::ExcludeCasterAuraType, SpellInfo::ExcludeTargetAuraSpell, SpellInfo::ExcludeTargetAuraState, SpellInfo::ExcludeTargetAuraType, SpellInfo::FacingCasterFlags, Field::GetFloat(), Field::GetInt16(), Field::GetInt32(), getMSTime(), GetMSTimeDiffToNow(), Field::GetUInt32(), Field::GetUInt64(), SpellInfo::InterruptFlags, SpellInfo::LaunchDelay, MAX_SPELL_EFFECTS, SpellInfo::MaxAffectedTargets, SpellInfo::MaxLevel, SpellInfo::MaxTargetLevel, SpellInfo::Mechanic, SpellInfo::PreventionType, SpellInfo::ProcBasePPM, SpellInfo::ProcChance, SpellInfo::ProcCharges, SpellInfo::ProcCooldown, SpellInfo::ProcFlags, SpellInfo::RangeEntry, SpellInfo::RecoveryTime, SpellInfo::RequiredAreasID, SpellInfo::RequiresSpellFocus, SpellInfo::SchoolMask, sDifficultyStore, SpellInfo::Speed, SpellInfo::SpellFamilyFlags, SpellInfo::SpellFamilyName, SpellInfo::SpellLevel, sSpellCastTimesStore, sSpellDurationStore, sSpellNameStore, sSpellRadiusStore, sSpellRangeStore, SpellInfo::StackAmount, SpellInfo::Stances, SpellInfo::StancesNot, SpellInfo::StartRecoveryCategory, SpellInfo::StartRecoveryTime, SpellInfo::TargetAuraSpell, SpellInfo::TargetAuraState, SpellInfo::TargetAuraType, SpellInfo::TargetCreatureType, SpellInfo::Targets, TC_LOG_ERROR, TC_LOG_INFO, TOTAL_AURAS, TOTAL_SPELL_EFFECTS, TOTAL_SPELL_TARGETS, SpellInfo::Width, and WorldDatabase.
| void SpellMgr::LoadSpellInfoSpellSpecificAndAuraState | ( | ) |
Definition at line 5325 of file SpellMgr.cpp.
References getMSTime(), GetMSTimeDiffToNow(), and TC_LOG_INFO.
| void SpellMgr::LoadSpellInfoStore | ( | ) |
Definition at line 2496 of file SpellMgr.cpp.
References BattlePets::BattlePetMgr::AddBattlePetSpeciesBySpell(), ASSERT, DIFFICULTY_NONE, getMSTime(), GetMSTimeDiffToNow(), Trinity::Containers::MapGetValuePtr(), MAX_SPELL_EFFECTS, MAX_SPELLMOD, sBattlePetSpeciesStore, sDifficultyStore, sLanguageMgr, SPELL_AURA_ADD_FLAT_MODIFIER, SPELL_AURA_ADD_FLAT_MODIFIER_BY_SPELL_LABEL, SPELL_AURA_ADD_PCT_MODIFIER, SPELL_AURA_ADD_PCT_MODIFIER_BY_SPELL_LABEL, SPELL_EFFECT_LANGUAGE, SPELL_EFFECT_SUMMON, sSpellAuraOptionsStore, sSpellAuraRestrictionsStore, sSpellCastingRequirementsStore, sSpellCategoriesStore, sSpellClassOptionsStore, sSpellCooldownsStore, sSpellEffectStore, sSpellEmpowerStageStore, sSpellEmpowerStore, sSpellEquippedItemsStore, sSpellInterruptsStore, sSpellLabelStore, sSpellLevelsStore, sSpellMiscStore, sSpellNameStore, sSpellPowerDifficultyStore, sSpellPowerStore, sSpellReagentsCurrencyStore, sSpellReagentsStore, sSpellScalingStore, sSpellShapeshiftStore, sSpellTargetRestrictionsStore, sSpellTotemsStore, sSpellXSpellVisualStore, sSummonPropertiesStore, SpellEmpowerStageEntry::Stage, SUMMON_SLOT_MINIPET, SummonFromBattlePetJournal, TC_LOG_ERROR, TC_LOG_INFO, TOTAL_AURAS, TOTAL_SPELL_EFFECTS, TOTAL_SPELL_TARGETS, and UnloadSpellInfoStore().
| void SpellMgr::LoadSpellInfoTargetCaps | ( | ) |
Definition at line 5407 of file SpellMgr.cpp.
References SpellInfo::_LoadSqrtTargetLimit(), ApplySpellFix(), EFFECT_0, EFFECT_1, EFFECT_2, EFFECT_4, EFFECT_5, EFFECT_6, getMSTime(), GetMSTimeDiffToNow(), and TC_LOG_INFO.
| void SpellMgr::LoadSpellLearnSkills | ( | ) |
Definition at line 958 of file SpellMgr.cpp.
References DIFFICULTY_NONE, getMSTime(), GetMSTimeDiffToNow(), SpellLearnSkillNode::maxvalue, mSpellLearnSkills, SpellLearnSkillNode::skill, SKILL_DUAL_WIELD, SPELL_EFFECT_DUAL_WIELD, SPELL_EFFECT_SKILL, SpellLearnSkillNode::step, TC_LOG_INFO, and SpellLearnSkillNode::value.
| void SpellMgr::LoadSpellLearnSpells | ( | ) |
Definition at line 1001 of file SpellMgr.cpp.
References SpellLearnSpellNode::Active, SpellLearnSpellNode::AutoLearned, DIFFICULTY_NONE, Field::GetBool(), getMSTime(), GetMSTimeDiffToNow(), GetSpellInfo(), GetSpellLearnSpellMapBounds(), Field::GetUInt32(), SpellInfo::HasAttribute(), mSpellLearnedBySpells, mSpellLearnSpells, SpellLearnSpellNode::OverridesSpell, SpellLearnSpellNode::SourceSpell, SpellLearnSpellNode::Spell, SPELL_ATTR0_CU_IS_TALENT, SPELL_EFFECT_LEARN_SPELL, SPELL_EFFECT_SKILL_STEP, sSpellLearnSpellStore, TARGET_UNIT_PET, TC_LOG_ERROR, TC_LOG_INFO, and WorldDatabase.
| void SpellMgr::LoadSpellLinked | ( | ) |
Definition at line 2074 of file SpellMgr.cpp.
References DIFFICULTY_NONE, SpellInfo::GetEffects(), Field::GetInt32(), getMSTime(), GetMSTimeDiffToNow(), GetSpellInfo(), mSpellLinkedMap, SPELL_LINK_AURA, SPELL_LINK_CAST, SPELL_LINK_REMOVE, TC_LOG_ERROR, TC_LOG_INFO, and WorldDatabase.
| void SpellMgr::LoadSpellPetAuras | ( | ) |
Definition at line 1965 of file SpellMgr.cpp.
References SpellEffectInfo::ApplyAuraName, SpellEffectInfo::CalcValue(), DIFFICULTY_NONE, SpellEffectInfo::Effect, SpellInfo::GetEffect(), SpellInfo::GetEffects(), getMSTime(), GetMSTimeDiffToNow(), GetSpellInfo(), SpellImplicitTargetInfo::GetTarget(), Field::GetUInt32(), mSpellPetAuraMap, SPELL_AURA_DUMMY, SPELL_EFFECT_APPLY_AURA, SPELL_EFFECT_DUMMY, TARGET_UNIT_PET, SpellEffectInfo::TargetA, TC_LOG_ERROR, TC_LOG_INFO, and WorldDatabase.
| void SpellMgr::LoadSpellProcs | ( | ) |
Definition at line 1497 of file SpellMgr.cpp.
References SpellProcEntry::AttributesMask, SpellProcEntry::Chance, SpellProcEntry::Charges, SpellProcEntry::Cooldown, SpellInfo::Difficulty, DIFFICULTY_NONE, SpellProcEntry::DisableEffectsMask, DONE_HIT_PROC_FLAG_MASK, SpellInfo::GetEffects(), SpellInfo::GetFirstRankSpell(), Field::GetFloat(), Field::GetInt32(), getMSTime(), GetMSTimeDiffToNow(), SpellInfo::GetNextRankSpell(), GetSpellInfo(), GetSpellProcEntry(), Field::GetUInt16(), Field::GetUInt32(), Field::GetUInt8(), SpellProcEntry::HitMask, SpellInfo::Id, SpellInfo::IsRanked(), DB2Manager::IsValidSpellFamiliyName(), PROC_ATTR_ALL_ALLOWED, PROC_ATTR_NONE, PROC_ATTR_REQ_EXP_OR_HONOR, PROC_ATTR_REQ_SPELLMOD, PROC_ATTR_TRIGGERED_CAN_PROC, PROC_FLAG_2_CAST_SUCCESSFUL, PROC_FLAG_DEAL_HARMFUL_ABILITY, PROC_FLAG_DEAL_HARMFUL_PERIODIC, PROC_FLAG_DEAL_HARMFUL_SPELL, PROC_FLAG_DEAL_HELPFUL_ABILITY, PROC_FLAG_DEAL_HELPFUL_PERIODIC, PROC_FLAG_DEAL_HELPFUL_SPELL, PROC_FLAG_DEAL_MELEE_ABILITY, PROC_FLAG_DEAL_RANGED_ABILITY, PROC_FLAG_DEAL_RANGED_ATTACK, PROC_FLAG_KILL, PROC_HIT_BLOCK, PROC_HIT_CRITICAL, PROC_HIT_MASK_ALL, PROC_HIT_MISS, PROC_HIT_NONE, PROC_HIT_REFLECT, PROC_SPELL_PHASE_CAST, PROC_SPELL_PHASE_FINISH, PROC_SPELL_PHASE_HIT, PROC_SPELL_PHASE_MASK_ALL, PROC_SPELL_TYPE_DAMAGE, PROC_SPELL_TYPE_MASK_ALL, PROC_SPELL_TYPE_NO_DMG_HEAL, PROC_SPELL_TYPE_NONE, SpellInfo::ProcChance, SpellInfo::ProcCharges, SpellInfo::ProcCooldown, SpellInfo::ProcFlags, SpellProcEntry::ProcFlags, SpellProcEntry::ProcsPerMinute, REQ_SPELL_PHASE_PROC_FLAG_MASK, SpellProcEntry::SchoolMask, SPELL_ATTR3_CAN_PROC_FROM_PROCS, SPELL_AURA_ABILITY_IGNORE_AURASTATE, SPELL_AURA_ADD_FLAT_MODIFIER, SPELL_AURA_ADD_FLAT_MODIFIER_BY_SPELL_LABEL, SPELL_AURA_ADD_PCT_MODIFIER, SPELL_AURA_ADD_PCT_MODIFIER_BY_SPELL_LABEL, SPELL_AURA_DAMAGE_IMMUNITY, SPELL_AURA_DUMMY, SPELL_AURA_FORCE_REACTION, SPELL_AURA_IGNORE_SPELL_COOLDOWN, SPELL_AURA_INTERCEPT_MELEE_RANGED_ATTACKS, SPELL_AURA_MECHANIC_IMMUNITY, SPELL_AURA_MOD_ATTACK_POWER, SPELL_AURA_MOD_ATTACK_POWER_PCT, SPELL_AURA_MOD_ATTACKER_MELEE_HIT_CHANCE, SPELL_AURA_MOD_BLOCK_PERCENT, SPELL_AURA_MOD_CASTING_SPEED, SPELL_AURA_MOD_CONFUSE, SPELL_AURA_MOD_DAMAGE_DONE, SPELL_AURA_MOD_DAMAGE_PERCENT_DONE, SPELL_AURA_MOD_DAMAGE_PERCENT_TAKEN, SPELL_AURA_MOD_DAMAGE_TAKEN, SPELL_AURA_MOD_DETAUNT, SPELL_AURA_MOD_FEAR, SPELL_AURA_MOD_HIT_CHANCE, SPELL_AURA_MOD_INVISIBILITY, SPELL_AURA_MOD_MECHANIC_RESISTANCE, SPELL_AURA_MOD_MELEE_HASTE, SPELL_AURA_MOD_MELEE_HASTE_NO_REGEN, SPELL_AURA_MOD_POWER_COST_SCHOOL, SPELL_AURA_MOD_POWER_COST_SCHOOL_PCT, SPELL_AURA_MOD_POWER_REGEN_PERCENT, SPELL_AURA_MOD_RESISTANCE, SPELL_AURA_MOD_ROOT, SPELL_AURA_MOD_ROOT_2, SPELL_AURA_MOD_SCHOOL_MASK_DAMAGE_FROM_CASTER, SPELL_AURA_MOD_SPELL_CRIT_CHANCE, SPELL_AURA_MOD_SPELL_DAMAGE_FROM_CASTER, SPELL_AURA_MOD_STEALTH, SPELL_AURA_MOD_STUN, SPELL_AURA_MOD_TAUNT, SPELL_AURA_MOD_THREAT, SPELL_AURA_MOD_WEAPON_CRIT_PERCENT, SPELL_AURA_OVERRIDE_CLASS_SCRIPTS, SPELL_AURA_PERIODIC_DUMMY, SPELL_AURA_PROC_TRIGGER_DAMAGE, SPELL_AURA_PROC_TRIGGER_SPELL, SPELL_AURA_PROC_TRIGGER_SPELL_WITH_VALUE, SPELL_AURA_RANGED_ATTACK_POWER_ATTACKER_BONUS, SPELL_AURA_REFLECT_SPELLS, SPELL_AURA_REFLECT_SPELLS_SCHOOL, SPELL_AURA_SCHOOL_ABSORB, SPELL_AURA_SPELL_MAGNET, SPELL_AURA_TRANSFORM, SPELL_PROC_FLAG_MASK, SPELL_SCHOOL_MASK_ALL, SpellProcEntry::SpellFamilyMask, SpellProcEntry::SpellFamilyName, SpellProcEntry::SpellPhaseMask, SpellProcEntry::SpellTypeMask, TAKEN_HIT_PROC_FLAG_MASK, TC_LOG_ERROR, TC_LOG_INFO, TOTAL_AURAS, and WorldDatabase.
| void SpellMgr::LoadSpellRanks | ( | ) |
Definition at line 823 of file SpellMgr.cpp.
References _GetSpellInfo(), AssertSpellInfo(), SpellInfo::ChainEntry, DIFFICULTY_NONE, SpellChainNode::first, getMSTime(), GetMSTimeDiffToNow(), GetSpellInfo(), SpellInfo::Id, SpellChainNode::last, mSpellChains, sSkillLineAbilityStore, and TC_LOG_INFO.
| void SpellMgr::LoadSpellRequired | ( | ) |
Definition at line 897 of file SpellMgr.cpp.
References DIFFICULTY_NONE, getMSTime(), GetMSTimeDiffToNow(), GetSpellInfo(), Field::GetUInt32(), SpellInfo::IsRankOf(), IsSpellRequiringSpell(), mSpellReq, mSpellsReqSpell, TC_LOG_ERROR, TC_LOG_INFO, and WorldDatabase.
| void SpellMgr::LoadSpellTargetPositions | ( | ) |
Definition at line 1159 of file SpellMgr.cpp.
References DIFFICULTY_NONE, SpellInfo::GetEffect(), SpellInfo::GetEffects(), WorldLocation::GetMapId(), getMSTime(), GetMSTimeDiffToNow(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), GetSpellInfo(), SpellImplicitTargetInfo::GetTarget(), Field::GetUInt32(), M_PI, mSpellTargetPositions, SpellEffectInfo::PositionFacing, Position::SetOrientation(), sMapStore, TARGET_DEST_DB, TARGET_DEST_NEARBY_DB, TARGET_DEST_NEARBY_ENTRY_OR_DB, SpellEffectInfo::TargetA, SpellEffectInfo::TargetB, TC_LOG_ERROR, TC_LOG_INFO, and WorldDatabase.
| void SpellMgr::LoadSpellThreats | ( | ) |
Definition at line 1913 of file SpellMgr.cpp.
References SpellThreatEntry::apPctMod, DIFFICULTY_NONE, SpellThreatEntry::flatMod, Field::GetFloat(), Field::GetInt32(), getMSTime(), GetMSTimeDiffToNow(), GetSpellInfo(), Field::GetUInt32(), mSpellThreatMap, SpellThreatEntry::pctMod, TC_LOG_ERROR, TC_LOG_INFO, and WorldDatabase.
| void SpellMgr::LoadSpellTotemModel | ( | ) |
Definition at line 5608 of file SpellMgr.cpp.
References DIFFICULTY_NONE, getMSTime(), GetMSTimeDiffToNow(), GetSpellInfo(), Field::GetUInt32(), Field::GetUInt8(), mSpellTotemModel, sChrRacesStore, sCreatureDisplayInfoStore, TC_LOG_ERROR, TC_LOG_INFO, and WorldDatabase.
| void SpellMgr::UnloadSpellInfoChains | ( | ) |
Definition at line 814 of file SpellMgr.cpp.
References _GetSpellInfo(), SpellInfo::ChainEntry, and mSpellChains.
| void SpellMgr::UnloadSpellInfoImplicitTargetConditionLists | ( | ) |
Definition at line 2729 of file SpellMgr.cpp.
References SpellInfo::_UnloadImplicitTargetConditionLists().
| void SpellMgr::UnloadSpellInfoStore | ( | ) |
Definition at line 2723 of file SpellMgr.cpp.
Referenced by LoadSpellInfoStore(), and ~SpellMgr().
|
private |
Definition at line 808 of file SpellMgr.h.
Referenced by GetPetDefaultSpellsEntry(), and LoadPetDefaultSpells().
|
private |
Definition at line 807 of file SpellMgr.h.
Referenced by GetPetLevelupSpellList(), and LoadPetLevelupSpellMap().
|
private |
Definition at line 806 of file SpellMgr.h.
Referenced by GetSkillLineAbilityMapBounds(), and LoadSkillLineAbilityMap().
|
private |
Definition at line 805 of file SpellMgr.h.
Referenced by GetSpellAreaForAreaMapBounds(), and LoadSpellAreas().
|
private |
Definition at line 804 of file SpellMgr.h.
Referenced by GetSpellAreaForAuraMapBounds(), and LoadSpellAreas().
|
private |
Definition at line 803 of file SpellMgr.h.
Referenced by GetSpellAreaForQuestEndMapBounds(), and LoadSpellAreas().
|
private |
Definition at line 802 of file SpellMgr.h.
Referenced by GetSpellAreaForQuestMapBounds(), and LoadSpellAreas().
|
private |
Definition at line 801 of file SpellMgr.h.
Referenced by GetSpellAreaMapBounds(), and LoadSpellAreas().
|
private |
Definition at line 786 of file SpellMgr.h.
Referenced by GetSpellChainNode(), LoadSpellRanks(), and UnloadSpellInfoChains().
|
private |
Definition at line 785 of file SpellMgr.h.
|
private |
Definition at line 800 of file SpellMgr.h.
Referenced by GetSpellEnchantProcEvent(), and LoadSpellEnchantProcData().
|
private |
Definition at line 794 of file SpellMgr.h.
Referenced by GetSpellGroupSpellMapBounds(), and LoadSpellGroups().
|
private |
Definition at line 795 of file SpellMgr.h.
Referenced by CheckSpellGroupStackRules(), GetSpellGroupStackRule(), and LoadSpellGroupStackRules().
|
private |
Definition at line 791 of file SpellMgr.h.
Referenced by GetSpellLearnedBySpellMapBounds(), and LoadSpellLearnSpells().
|
private |
Definition at line 789 of file SpellMgr.h.
Referenced by GetSpellLearnSkill(), and LoadSpellLearnSkills().
|
private |
Definition at line 790 of file SpellMgr.h.
Referenced by GetSpellLearnSpellMapBounds(), IsSpellLearnSpell(), and LoadSpellLearnSpells().
|
private |
Definition at line 799 of file SpellMgr.h.
Referenced by GetSpellLinked(), and LoadSpellLinked().
|
private |
Definition at line 798 of file SpellMgr.h.
Referenced by GetPetAura(), and LoadSpellPetAuras().
|
private |
Definition at line 788 of file SpellMgr.h.
Referenced by GetSpellsRequiredForSpellBounds(), and LoadSpellRequired().
|
private |
Definition at line 796 of file SpellMgr.h.
Referenced by AddSameEffectStackRuleSpellGroups(), and LoadSpellGroupStackRules().
|
private |
Definition at line 793 of file SpellMgr.h.
Referenced by GetSpellSpellGroupMapBounds(), and LoadSpellGroups().
|
private |
Definition at line 787 of file SpellMgr.h.
Referenced by GetSpellsRequiringSpellBounds(), and LoadSpellRequired().
|
private |
Definition at line 792 of file SpellMgr.h.
Referenced by GetSpellTargetPosition(), GetSpellTargetPositions(), and LoadSpellTargetPositions().
|
private |
Definition at line 797 of file SpellMgr.h.
Referenced by GetSpellThreatEntry(), and LoadSpellThreats().
|
private |
Definition at line 809 of file SpellMgr.h.
Referenced by GetModelForTotem(), and LoadSpellTotemModel().