|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
#include <SpellMgr.h>
Static Public Member Functions | |
| static bool | IsSpellValid (SpellInfo const *spellInfo, Player *player=NULL, bool msg=true) |
| Some checks for spells, to prevent adding deprecated/broken spells for trainers, spell book, etc. | |
Private Member Functions | |
| SpellInfo * | _GetSpellInfo (uint32 spellId) |
| SpellMgr () | |
| ~SpellMgr () | |
Friends | |
| class | Skyfire::Singleton< SpellMgr, Skyfire::NullMutex > |
Definition at line 589 of file SpellMgr.h.
|
private |
Definition at line 311 of file SpellMgr.cpp.
|
private |
Definition at line 313 of file SpellMgr.cpp.
References UnloadSpellInfoStore().
Definition at line 682 of file SpellMgr.h.
References GetSpellInfoStoreSize(), and mSpellInfoMap.
Referenced by LoadSpellInfoCustomAttributes().
| bool SpellMgr::AddSameEffectStackRuleSpellGroups | ( | SpellInfo const * | spellInfo, |
| int32 | amount, | ||
| std::map< SpellGroup, int32 > & | groups ) const |
Definition at line 649 of file SpellMgr.cpp.
References SpellInfo::GetFirstRankSpell(), GetSpellSpellGroupMapBounds(), SpellInfo::Id, mSpellGroupStack, and SPELL_GROUP_STACK_RULE_EXCLUSIVE_SAME_EFFECT.
| bool SpellMgr::CanSpellTriggerProcOnEvent | ( | SpellProcEntry const & | procEntry, |
| ProcEventInfo & | eventInfo ) const |
Definition at line 871 of file SpellMgr.cpp.
References SpellProcEntry::attributesMask, DONE_HIT_PROC_FLAG_MASK, ProcEventInfo::GetActionTarget(), ProcEventInfo::GetActor(), ProcEventInfo::GetHitMask(), ProcEventInfo::GetSchoolMask(), ProcEventInfo::GetSpellInfo(), ProcEventInfo::GetSpellPhaseMask(), ProcEventInfo::GetSpellTypeMask(), ProcEventInfo::GetTypeMask(), SpellProcEntry::hitMask, PERIODIC_PROC_FLAG_MASK, PROC_ATTR_REQ_EXP_OR_HONOR, PROC_FLAG_DEATH, PROC_FLAG_DONE_TRAP_ACTIVATION, PROC_FLAG_KILL, PROC_FLAG_KILLED, PROC_HIT_ABSORB, PROC_HIT_CRITICAL, PROC_HIT_NORMAL, PROC_SPELL_PHASE_CAST, REQ_SPELL_PHASE_PROC_FLAG_MASK, SpellProcEntry::schoolMask, SPELL_PROC_FLAG_MASK, SpellInfo::SpellFamilyFlags, SpellProcEntry::spellFamilyMask, SpellInfo::SpellFamilyName, SpellProcEntry::spellFamilyName, SpellProcEntry::spellPhaseMask, SpellProcEntry::spellTypeMask, TAKEN_HIT_PROC_FLAG_MASK, Object::ToPlayer(), and SpellProcEntry::typeMask.
| SpellGroupStackRule SpellMgr::CheckSpellGroupStackRules | ( | SpellInfo const * | spellInfo1, |
| SpellInfo const * | spellInfo2 ) const |
Definition at line 681 of file SpellMgr.cpp.
References SpellInfo::GetFirstRankSpell(), GetSpellGroupSpellMapBounds(), GetSpellSpellGroupMapBounds(), SpellInfo::Id, IsSpellMemberOfSpellGroup(), mSpellGroupStack, and SPELL_GROUP_STACK_RULE_DEFAULT.
Definition at line 489 of file SpellMgr.cpp.
References GetSpellChainNode().
Referenced by GetSpellBonusData(), GetSpellSpellGroupMapBounds(), and GetSpellThreatEntry().
Definition at line 497 of file SpellMgr.cpp.
References GetSpellChainNode().
Definition at line 505 of file SpellMgr.cpp.
References GetSpellChainNode().
Definition at line 972 of file SpellMgr.cpp.
References mSpellPetAuraMap.
| PetDefaultSpellsEntry const * SpellMgr::GetPetDefaultSpellsEntry | ( | int32 | id | ) | const |
Definition at line 1009 of file SpellMgr.cpp.
References mPetDefaultSpellsMap.
| PetLevelupSpellSet const * SpellMgr::GetPetLevelupSpellList | ( | uint32 | petFamily | ) | const |
Definition at line 1000 of file SpellMgr.cpp.
References mPetLevelupSpellMap.
Definition at line 514 of file SpellMgr.cpp.
References GetSpellChainNode().
| void SpellMgr::GetSetOfSpellsInSpellGroup | ( | SpellGroup | group_id, |
| std::set< uint32 > & | foundSpells ) const |
Definition at line 622 of file SpellMgr.cpp.
References GetSetOfSpellsInSpellGroup().
Referenced by GetSetOfSpellsInSpellGroup(), GetSetOfSpellsInSpellGroup(), and LoadSpellGroups().
| void SpellMgr::GetSetOfSpellsInSpellGroup | ( | SpellGroup | group_id, |
| std::set< uint32 > & | foundSpells, | ||
| std::set< SpellGroup > & | usedGroups ) const |
Definition at line 628 of file SpellMgr.cpp.
References GetSetOfSpellsInSpellGroup(), and GetSpellGroupSpellMapBounds().
| SkillLineAbilityMapBounds SpellMgr::GetSkillLineAbilityMapBounds | ( | uint32 | spell_id | ) | const |
Definition at line 967 of file SpellMgr.cpp.
References mSkillLineAbilityMap.
| SpellAreaForAreaMapBounds SpellMgr::GetSpellAreaForAreaMapBounds | ( | uint32 | area_id | ) | const |
Definition at line 1037 of file SpellMgr.cpp.
References mSpellAreaForAreaMap.
| SpellAreaForAuraMapBounds SpellMgr::GetSpellAreaForAuraMapBounds | ( | uint32 | spell_id | ) | const |
Definition at line 1032 of file SpellMgr.cpp.
References mSpellAreaForAuraMap.
Referenced by LoadSpellAreas().
| SpellAreaForQuestMapBounds SpellMgr::GetSpellAreaForQuestEndMapBounds | ( | uint32 | quest_id | ) | const |
Definition at line 1027 of file SpellMgr.cpp.
References mSpellAreaForQuestEndMap.
| SpellAreaForQuestMapBounds SpellMgr::GetSpellAreaForQuestMapBounds | ( | uint32 | quest_id | ) | const |
Definition at line 1022 of file SpellMgr.cpp.
References mSpellAreaForQuestMap.
| SpellAreaMapBounds SpellMgr::GetSpellAreaMapBounds | ( | uint32 | spell_id | ) | const |
Definition at line 1017 of file SpellMgr.cpp.
References mSpellAreaMap.
Referenced by LoadSpellAreas().
| SpellBonusEntry const * SpellMgr::GetSpellBonusData | ( | uint32 | spellId | ) | const |
Definition at line 936 of file SpellMgr.cpp.
References GetFirstSpellInChain(), and mSpellBonusMap.
| SpellChainNode const * SpellMgr::GetSpellChainNode | ( | uint32 | spell_id | ) | const |
Definition at line 480 of file SpellMgr.cpp.
References mSpellChains.
Referenced by GetFirstSpellInChain(), GetLastSpellInChain(), GetNextSpellInChain(), GetPrevSpellInChain(), GetSpellRank(), and GetSpellWithRank().
Definition at line 410 of file SpellMgr.cpp.
References mSpellDifficultySearcherMap.
Referenced by GetSpellIdForDifficulty().
| SpellEnchantProcEntry const * SpellMgr::GetSpellEnchantProcEvent | ( | uint32 | enchId | ) | const |
Definition at line 981 of file SpellMgr.cpp.
References mSpellEnchantProcEventMap.
| SpellInfo const * SpellMgr::GetSpellForDifficultyFromSpell | ( | SpellInfo const * | spell, |
| Unit const * | caster ) const |
Definition at line 463 of file SpellMgr.cpp.
References GetSpellIdForDifficulty(), GetSpellInfo(), SpellInfo::Id, and SF_LOG_DEBUG.
| SpellGroupSpellMapBounds SpellMgr::GetSpellGroupSpellMapBounds | ( | SpellGroup | group_id | ) | const |
Definition at line 617 of file SpellMgr.cpp.
References mSpellGroupSpell.
Referenced by CheckSpellGroupStackRules(), GetSetOfSpellsInSpellGroup(), and LoadSpellGroupStackRules().
Definition at line 421 of file SpellMgr.cpp.
References DIFFICULTY_HEROIC, WorldObject::GetMap(), Map::GetSpawnMode(), GetSpellDifficultyId(), GetSpellInfo(), Map::IsInstance(), SF_LOG_DEBUG, SF_LOG_ERROR, SpellDifficultyEntry::SpellID, and sSpellDifficultyStore.
Referenced by GetSpellForDifficultyFromSpell().
Definition at line 678 of file SpellMgr.h.
References GetSpellInfo(), GetSpellInfoStoreSize(), and mSpellInfoMap.
Referenced by GetSpellForDifficultyFromSpell(), GetSpellIdForDifficulty(), GetSpellInfo(), LoadEnchantCustomAttr(), LoadPetDefaultSpells(), LoadPetLevelupSpellMap(), LoadSpellAreas(), LoadSpellBonusess(), LoadSpellGroups(), LoadSpellLearnSkills(), LoadSpellLearnSpells(), LoadSpellLinked(), LoadSpellPetAuras(), LoadSpellProcEvents(), LoadSpellProcs(), LoadSpellRanks(), LoadSpellRequired(), LoadSpellTargetPositions(), and LoadSpellThreats().
|
inline |
Definition at line 679 of file SpellMgr.h.
References mSpellInfoMap.
Referenced by _GetSpellInfo(), GetSpellInfo(), LoadEnchantCustomAttr(), LoadPetDefaultSpells(), LoadSpellInfoCorrections(), LoadSpellInfoCustomAttributes(), LoadSpellLearnSkills(), LoadSpellLearnSpells(), UnloadSpellInfoImplicitTargetConditionLists(), and UnloadSpellInfoStore().
| SpellLearnSkillNode const * SpellMgr::GetSpellLearnSkill | ( | uint32 | spell_id | ) | const |
Definition at line 564 of file SpellMgr.cpp.
References mSpellLearnSkills.
| SpellLearnSpellMapBounds SpellMgr::GetSpellLearnSpellMapBounds | ( | uint32 | spell_id | ) | const |
Definition at line 573 of file SpellMgr.cpp.
References mSpellLearnSpells.
Referenced by IsSpellLearnToSpell().
Definition at line 994 of file SpellMgr.cpp.
References mSpellLinkedMap.
| SpellProcEntry const * SpellMgr::GetSpellProcEntry | ( | uint32 | spellId | ) | const |
Definition at line 863 of file SpellMgr.cpp.
References mSpellProcMap.
| SpellProcEventEntry const * SpellMgr::GetSpellProcEvent | ( | uint32 | spellId | ) | const |
Definition at line 726 of file SpellMgr.cpp.
References mSpellProcEventMap.
Definition at line 523 of file SpellMgr.cpp.
References GetSpellChainNode().
| SpellSpellGroupMapBounds SpellMgr::GetSpellSpellGroupMapBounds | ( | uint32 | spell_id | ) | const |
Definition at line 600 of file SpellMgr.cpp.
References GetFirstSpellInChain(), and mSpellSpellGroup.
Referenced by AddSameEffectStackRuleSpellGroups(), CheckSpellGroupStackRules(), and IsSpellMemberOfSpellGroup().
| SpellRequiredMapBounds SpellMgr::GetSpellsRequiredForSpellBounds | ( | uint32 | spell_id | ) | const |
Definition at line 543 of file SpellMgr.cpp.
References mSpellReq.
| SpellsRequiringSpellMapBounds SpellMgr::GetSpellsRequiringSpellBounds | ( | uint32 | spell_id | ) | const |
Definition at line 548 of file SpellMgr.cpp.
References mSpellsReqSpell.
Referenced by IsSpellRequiringSpell().
| SpellTargetPosition const * SpellMgr::GetSpellTargetPosition | ( | uint32 | spell_id, |
| SpellEffIndex | effIndex ) const |
Definition at line 592 of file SpellMgr.cpp.
References mSpellTargetPositions.
| SpellThreatEntry const * SpellMgr::GetSpellThreatEntry | ( | uint32 | spellID | ) | const |
Definition at line 952 of file SpellMgr.cpp.
References GetFirstSpellInChain(), and mSpellThreatMap.
Definition at line 531 of file SpellMgr.cpp.
References GetSpellChainNode(), and GetSpellWithRank().
Referenced by GetSpellWithRank().
| bool SpellMgr::IsArenaAllowedEnchancment | ( | uint32 | ench_id | ) | const |
Definition at line 989 of file SpellMgr.cpp.
References mEnchantCustomAttr.
| bool SpellMgr::IsSpellLearnSpell | ( | uint32 | spell_id | ) | const |
Definition at line 578 of file SpellMgr.cpp.
References mSpellLearnSpells.
Definition at line 583 of file SpellMgr.cpp.
References GetSpellLearnSpellMapBounds().
| bool SpellMgr::IsSpellMemberOfSpellGroup | ( | uint32 | spellid, |
| SpellGroup | groupid ) const |
Definition at line 606 of file SpellMgr.cpp.
References GetSpellSpellGroupMapBounds().
Referenced by CheckSpellGroupStackRules().
| bool SpellMgr::IsSpellProcEventCanTriggeredBy | ( | SpellProcEventEntry const * | spellProcEvent, |
| uint32 | EventProcFlag, | ||
| SpellInfo const * | procSpell, | ||
| uint32 | procFlags, | ||
| uint32 | procExtra, | ||
| bool | active ) const |
Definition at line 734 of file SpellMgr.cpp.
References AURA_SPELL_PROC_EX_MASK, PROC_EX_CRITICAL_HIT, PROC_EX_EX_TRIGGER_ALWAYS, PROC_EX_INTERNAL_DOT, PROC_EX_INTERNAL_HOT, PROC_EX_INTERNAL_REQ_FAMILY, PROC_EX_NONE, PROC_EX_NORMAL_HIT, PROC_EX_NOT_ACTIVE_SPELL, PROC_EX_ONLY_ACTIVE_SPELL, PROC_FLAG_DEATH, PROC_FLAG_DONE_PERIODIC, PROC_FLAG_DONE_SPELL_MAGIC_DMG_CLASS_NEG, PROC_FLAG_DONE_SPELL_MAGIC_DMG_CLASS_POS, PROC_FLAG_DONE_TRAP_ACTIVATION, PROC_FLAG_KILL, PROC_FLAG_KILLED, PROC_FLAG_TAKEN_PERIODIC, PROC_FLAG_TAKEN_SPELL_MAGIC_DMG_CLASS_POS, PROC_FLAG_TAKEN_SPELL_NONE_DMG_CLASS_POS, SpellProcEventEntry::procEx, SpellInfo::SchoolMask, SpellProcEventEntry::schoolMask, SPELL_SCHOOL_MASK_NORMAL, SpellInfo::SpellFamilyFlags, SpellProcEventEntry::spellFamilyMask, SpellInfo::SpellFamilyName, and SpellProcEventEntry::spellFamilyName.
Definition at line 553 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 319 of file SpellMgr.cpp.
References SpellEffectInfo::Effect, SpellInfo::Effects, Player::GetSession(), SpellInfo::Id, SpellInfo::IsLootCrafting(), IsSpellValid(), SpellEffectInfo::ItemType, MAX_SPELL_EFFECTS, MAX_SPELL_REAGENTS, ChatHandler::PSendSysMessage(), SpellInfo::Reagent, SF_LOG_ERROR, sObjectMgr, SPELL_EFFECT_CREATE_ITEM, SPELL_EFFECT_CREATE_ITEM_2, SPELL_EFFECT_LEARN_SPELL, sSpellMgr, and SpellEffectInfo::TriggerSpell.
Referenced by Player::addSpell(), ObjectMgr::AddSpellToTrainer(), Player::AddTalent(), cast_commandscript::HandleCastCommand(), cast_commandscript::HandleCastDistCommand(), cast_commandscript::HandleCastSelfCommand(), learn_commandscript::HandleLearnAllGMCommand(), learn_commandscript::HandleLearnAllMySpellsCommand(), learn_commandscript::HandleLearnAllMyTalentsCommand(), learn_commandscript::HandleLearnCommand(), learn_commandscript::HandleLearnSkillRecipesHelper(), pet_commandscript::HandlePetLearnCommand(), IsSpellValid(), ObjectMgr::LoadQuestObjectives(), ObjectMgr::LoadQuests(), and Player::resetSpells().
| void SpellMgr::LoadEnchantCustomAttr | ( | ) |
Definition at line 2131 of file SpellMgr.cpp.
References SpellInfo::Attributes, SpellInfo::AttributesEx2, SpellEffectInfo::Effect, SpellInfo::Effects, getMSTime(), GetMSTimeDiffToNow(), GetSpellInfo(), GetSpellInfoStoreSize(), MAX_SPELL_EFFECTS, mEnchantCustomAttr, SpellEffectInfo::MiscValue, SF_LOG_INFO, SPELL_ATTR0_NOT_SHAPESHIFT, SPELL_ATTR2_PRESERVE_ENCHANT_IN_ARENA, SPELL_EFFECT_ENCHANT_ITEM_TEMPORARY, and sSpellItemEnchantmentStore.
| void SpellMgr::LoadPetDefaultSpells | ( | ) |
Definition at line 2367 of file SpellMgr.cpp.
References SpellEffectInfo::Effect, SpellInfo::Effects, CreatureTemplate::Entry, getMSTime(), GetMSTimeDiffToNow(), GetSpellInfo(), GetSpellInfoStoreSize(), LoadPetDefaultSpells_helper(), MAX_CREATURE_SPELL_DATA_SLOT, MAX_SPELL_EFFECTS, SpellEffectInfo::MiscValue, mPetDefaultSpellsMap, CreatureTemplate::PetSpellDataId, sCreatureSpellDataStore, SF_LOG_INFO, sObjectMgr, SPELL_EFFECT_SUMMON, SPELL_EFFECT_SUMMON_PET, CreatureSpellDataEntry::spellId, PetDefaultSpellsEntry::spellid, and CreatureTemplate::spells.
| void SpellMgr::LoadPetLevelupSpellMap | ( | ) |
Definition at line 2263 of file SpellMgr.cpp.
References ABILITY_LEARNED_ON_GET_RACE_OR_CLASS_SKILL, getMSTime(), GetMSTimeDiffToNow(), GetSpellInfo(), CreatureFamilyEntry::ID, SpellInfo::Id, SkillLineAbilityEntry::learnOnGetSkill, mPetLevelupSpellMap, sCreatureFamilyStore, SF_LOG_INFO, SkillLineAbilityEntry::skillId, CreatureFamilyEntry::skillLine, SkillLineAbilityEntry::spellId, SpellInfo::SpellLevel, and sSkillLineAbilityStore.
| void SpellMgr::LoadSkillLineAbilityMap | ( | ) |
Definition at line 2049 of file SpellMgr.cpp.
References getMSTime(), GetMSTimeDiffToNow(), mSkillLineAbilityMap, SF_LOG_INFO, SkillLineAbilityEntry::spellId, and sSkillLineAbilityStore.
| void SpellMgr::LoadSpellAreas | ( | ) |
Definition at line 2445 of file SpellMgr.cpp.
References SpellArea::areaId, SpellArea::auraSpell, SpellArea::autocast, SpellArea::gender, GENDER_FEMALE, GENDER_MALE, GENDER_NONE, GetAreaEntryByAreaID(), Field::GetBool(), Field::GetInt32(), getMSTime(), GetMSTimeDiffToNow(), GetSpellAreaForAuraMapBounds(), GetSpellAreaMapBounds(), GetSpellInfo(), Field::GetUInt32(), mSpellAreaForAreaMap, mSpellAreaForAuraMap, mSpellAreaForQuestEndMap, mSpellAreaForQuestMap, mSpellAreaMap, SpellArea::questEnd, SpellArea::questEndStatus, SpellArea::questStart, SpellArea::questStartStatus, SpellArea::raceMask, RACEMASK_ALL_PLAYABLE, SF_LOG_ERROR, SF_LOG_INFO, sObjectMgr, SPELL_ATTR0_CANT_CANCEL, SpellArea::spellId, and WorldDatabase.
| void SpellMgr::LoadSpellBonusess | ( | ) |
Definition at line 1971 of file SpellMgr.cpp.
References SpellBonusEntry::ap_bonus, SpellBonusEntry::ap_dot_bonus, SpellBonusEntry::direct_damage, SpellBonusEntry::dot_damage, Field::GetFloat(), getMSTime(), GetMSTimeDiffToNow(), GetSpellInfo(), Field::GetUInt32(), mSpellBonusMap, SF_LOG_ERROR, SF_LOG_INFO, and WorldDatabase.
| void SpellMgr::LoadSpellEnchantProcData | ( | ) |
Definition at line 2170 of file SpellMgr.cpp.
References SpellEnchantProcEntry::customChance, Field::GetFloat(), getMSTime(), GetMSTimeDiffToNow(), Field::GetUInt32(), mSpellEnchantProcEventMap, SpellEnchantProcEntry::PPMChance, SpellEnchantProcEntry::procEx, SF_LOG_ERROR, SF_LOG_INFO, sSpellItemEnchantmentStore, and WorldDatabase.
| void SpellMgr::LoadSpellGroups | ( | ) |
Definition at line 1621 of file SpellMgr.cpp.
References Field::GetInt32(), getMSTime(), GetMSTimeDiffToNow(), SpellInfo::GetRank(), GetSetOfSpellsInSpellGroup(), GetSpellInfo(), Field::GetUInt32(), mSpellGroupSpell, mSpellSpellGroup, SF_LOG_ERROR, SF_LOG_INFO, SPELL_GROUP_CORE_RANGE_MAX, and WorldDatabase.
| void SpellMgr::LoadSpellGroupStackRules | ( | ) |
Definition at line 1700 of file SpellMgr.cpp.
References Field::GetInt8(), getMSTime(), GetMSTimeDiffToNow(), GetSpellGroupSpellMapBounds(), Field::GetUInt32(), mSpellGroupStack, SF_LOG_ERROR, SF_LOG_INFO, SPELL_GROUP_STACK_RULE_MAX, and WorldDatabase.
| void SpellMgr::LoadSpellInfoCorrections | ( | ) |
Definition at line 2915 of file SpellMgr.cpp.
References SpellInfo::ActiveIconID, SpellEffectInfo::ApplyAuraName, SpellEffectInfo::ApplyAuraTickCount, SpellInfo::AreaGroupId, SpellInfo::Attributes, SpellInfo::AttributesEx, SpellInfo::AttributesEx2, SpellInfo::AttributesEx3, SpellInfo::AttributesEx4, SpellInfo::AttributesEx5, SpellInfo::AttributesEx6, SpellInfo::AttributesEx8, AURA_INTERRUPT_FLAG_CAST, AURA_INTERRUPT_FLAG_HITBYSPELL, AURA_INTERRUPT_FLAG_JUMP, AURA_INTERRUPT_FLAG_MOVE, AURA_INTERRUPT_FLAG_TAKE_DAMAGE, SpellInfo::AuraInterruptFlags, SpellEffectInfo::BasePoints, SpellInfo::DurationEntry, SpellEffectInfo::Effect, EFFECT_0, EFFECT_1, EFFECT_2, EFFECT_RADIUS_100_YARDS, EFFECT_RADIUS_10_YARDS, EFFECT_RADIUS_200_YARDS, EFFECT_RADIUS_25_YARDS, EFFECT_RADIUS_3_YARDS, EFFECT_RADIUS_40_YARDS, EFFECT_RADIUS_45_YARDS, EFFECT_RADIUS_50000_YARDS, SpellInfo::Effects, FORM_TREE, getMSTime(), GetMSTimeDiffToNow(), GetSpellInfoStoreSize(), SpellInfo::Id, MAX_SPELL_EFFECTS, SpellInfo::MaxAffectedTargets, SpellEffectInfo::MaxRadiusEntry, SpellInfo::Mechanic, MECHANIC_STUN, SpellEffectInfo::MiscValue, SpellEffectInfo::MiscValueB, mSpellInfoMap, SpellInfo::ProcCharges, SpellEffectInfo::RadiusEntry, SpellInfo::RangeEntry, SF_LOG_INFO, SpellInfo::Speed, SPEED_CHARGE, SPELL_ATTR0_NEGATIVE_1, SPELL_ATTR0_PASSIVE, SPELL_ATTR1_CANT_TARGET_SELF, SPELL_ATTR1_CHANNELED_1, SPELL_ATTR1_DISPEL_AURAS_ON_IMMUNITY, SPELL_ATTR2_CAN_TARGET_NOT_IN_LOS, SPELL_ATTR2_CANT_CRIT, SPELL_ATTR3_CAN_PROC_WITH_TRIGGERED, SPELL_ATTR3_CANT_TRIGGER_PROC, SPELL_ATTR3_NO_DONE_BONUS, SPELL_ATTR3_NO_INITIAL_AGGRO, SPELL_ATTR3_STACK_FOR_DIFF_CASTERS, SPELL_ATTR4_TRIGGERED, SPELL_ATTR5_START_PERIODIC_AT_APPLY, SPELL_ATTR5_USABLE_WHILE_CONFUSED, SPELL_ATTR5_USABLE_WHILE_FEARED, SPELL_ATTR5_USABLE_WHILE_STUNNED, SPELL_ATTR6_CAN_TARGET_INVISIBLE, SPELL_ATTR8_DONT_RESET_PERIODIC_TIMER, SPELL_AURA_ADD_FLAT_MODIFIER, SPELL_AURA_DUMMY, SPELL_AURA_MOD_INCREASE_ENERGY_PERCENT, SPELL_EFFECT_APPLY_AURA, SPELL_EFFECT_CHARGE, SPELL_EFFECT_CHARGE_DEST, SPELL_EFFECT_DUMMY, SPELL_EFFECT_JUMP, SPELL_EFFECT_JUMP_DEST, SPELL_EFFECT_LEAP_BACK, SpellEffectInfo::SpellClassMask, SpellInfo::SpellFamilyName, SPELLMOD_EFFECT2, sSpellDurationStore, sSpellRadiusStore, sSpellRangeStore, sSummonPropertiesStore, SpellInfo::Stances, SUMMON_TYPE_TOTEM, TARGET_DEST_CASTER, TARGET_DEST_DB, TARGET_DEST_DEST, TARGET_UNIT_CASTER, TARGET_UNIT_MASTER, TARGET_UNIT_PET, TARGET_UNIT_SRC_AREA_ALLY, TARGET_UNIT_SRC_AREA_ENEMY, TARGET_UNIT_SRC_AREA_ENTRY, TARGET_UNIT_TARGET_ANY, TARGET_UNIT_TARGET_ENEMY, SpellEffectInfo::TargetA, SpellEffectInfo::TargetB, and SpellEffectInfo::TriggerSpell.
| void SpellMgr::LoadSpellInfoCustomAttributes | ( | ) |
Definition at line 2684 of file SpellMgr.cpp.
References _GetSpellInfo(), SpellInfo::_InitializeExplicitTargetMask(), SpellInfo::_IsPositiveEffect(), SpellEffectInfo::ApplyAuraName, SpellInfo::AttributesCu, SpellEffectInfo::Effect, EFFECT_0, EFFECT_1, EFFECT_2, SpellInfo::Effects, getMSTime(), GetMSTimeDiffToNow(), GetSpellInfoStoreSize(), SpellInfo::HasAura(), SpellInfo::Id, IsPartOfSkillLine(), ITEM_ENCHANTMENT_TYPE_COMBAT_SPELL, MAX_ITEM_ENCHANTMENT_EFFECTS, MAX_SPELL_EFFECTS, SpellEffectInfo::MiscValue, mSpellInfoMap, SF_LOG_INFO, SKILL_ENCHANTING, SPELL_ATTR0_CU_AURA_CC, SPELL_ATTR0_CU_CHARGE, SPELL_ATTR0_CU_CONE_BACK, SPELL_ATTR0_CU_CONE_LINE, SPELL_ATTR0_CU_DIRECT_DAMAGE, SPELL_ATTR0_CU_ENCHANT_PROC, SPELL_ATTR0_CU_IGNORE_ARMOR, SPELL_ATTR0_CU_NEGATIVE_EFF0, SPELL_ATTR0_CU_NEGATIVE_EFF1, SPELL_ATTR0_CU_NEGATIVE_EFF2, SPELL_ATTR0_CU_NO_INITIAL_THREAT, SPELL_ATTR0_CU_PICKPOCKET, SPELL_ATTR0_CU_REQ_CASTER_BEHIND_TARGET, SPELL_ATTR0_CU_REQ_TARGET_FACING_CASTER, SPELL_ATTR0_CU_SHARE_DAMAGE, SPELL_AURA_AOE_CHARM, SPELL_AURA_MOD_CHARM, SPELL_AURA_MOD_CONFUSE, SPELL_AURA_MOD_FEAR, SPELL_AURA_MOD_POSSESS, SPELL_AURA_MOD_STUN, SPELL_AURA_OBS_MOD_HEALTH, SPELL_AURA_OBS_MOD_POWER, SPELL_AURA_PERIODIC_DAMAGE, SPELL_AURA_PERIODIC_DAMAGE_PERCENT, SPELL_AURA_PERIODIC_ENERGIZE, SPELL_AURA_PERIODIC_HEAL, SPELL_AURA_PERIODIC_HEALTH_FUNNEL, SPELL_AURA_PERIODIC_LEECH, SPELL_AURA_PERIODIC_MANA_LEECH, SPELL_AURA_POWER_BURN, SPELL_AURA_PROC_TRIGGER_SPELL, SPELL_EFFECT_CHARGE, SPELL_EFFECT_CHARGE_DEST, 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_JUMP, SPELL_EFFECT_JUMP_DEST, SPELL_EFFECT_LEAP_BACK, SPELL_EFFECT_NORMALIZED_WEAPON_DMG, SPELL_EFFECT_PICKPOCKET, SPELL_EFFECT_POWER_BURN, SPELL_EFFECT_POWER_DRAIN, SPELL_EFFECT_SCHOOL_DAMAGE, SPELL_EFFECT_WEAPON_DAMAGE, SPELL_EFFECT_WEAPON_DAMAGE_NOSCHOOL, SPELL_EFFECT_WEAPON_PERCENT_DAMAGE, SPELLFAMILY_DRUID, SPELLFAMILY_WARRIOR, SpellInfo::SpellFamilyFlags, SpellInfo::SpellFamilyName, SpellItemEnchantmentEntry::spellid, SpellInfo::SpellVisual, sSpellItemEnchantmentStore, and SpellItemEnchantmentEntry::type.
| void SpellMgr::LoadSpellInfoStore | ( | ) |
Definition at line 2644 of file SpellMgr.cpp.
References SpellEffectEntry::EffectIndex, SpellEffectEntry::EffectSpellId, getMSTime(), GetMSTimeDiffToNow(), mSpellInfoMap, SF_LOG_INFO, sSpellEffectStore, sSpellStore, and UnloadSpellInfoStore().
| void SpellMgr::LoadSpellLearnSkills | ( | ) |
Definition at line 1318 of file SpellMgr.cpp.
References SpellEffectInfo::CalcValue(), SpellEffectInfo::Effect, SpellInfo::Effects, getMSTime(), GetMSTimeDiffToNow(), GetSpellInfo(), GetSpellInfoStoreSize(), MAX_SPELL_EFFECTS, SpellLearnSkillNode::maxvalue, SpellEffectInfo::MiscValue, mSpellLearnSkills, SF_LOG_INFO, SpellLearnSkillNode::skill, SKILL_RIDING, SPELL_EFFECT_SKILL, SpellLearnSkillNode::step, and SpellLearnSkillNode::value.
| void SpellMgr::LoadSpellLearnSpells | ( | ) |
Definition at line 1355 of file SpellMgr.cpp.
References SpellLearnSpellNode::active, SpellLearnSpellNode::autoLearned, SpellEffectInfo::Effect, SpellInfo::Effects, Field::GetBool(), getMSTime(), GetMSTimeDiffToNow(), GetSpellInfo(), GetSpellInfoStoreSize(), GetTalentSpellCost(), SpellImplicitTargetInfo::GetTarget(), Field::GetUInt32(), SpellInfo::HasEffect(), SpellInfo::IsPassive(), MAX_SPELL_EFFECTS, mSpellLearnSpells, SF_LOG_ERROR, SF_LOG_INFO, SpellLearnSpellNode::spell, SPELL_EFFECT_LEARN_SPELL, SPELL_EFFECT_SKILL_STEP, TARGET_UNIT_PET, SpellEffectInfo::TargetA, SpellEffectInfo::TriggerSpell, and WorldDatabase.
| void SpellMgr::LoadSpellLinked | ( | ) |
Definition at line 2212 of file SpellMgr.cpp.
References Field::GetInt32(), getMSTime(), GetMSTimeDiffToNow(), GetSpellInfo(), Field::GetUInt8(), mSpellLinkedMap, SF_LOG_ERROR, SF_LOG_INFO, SPELL_LINKED_MAX_SPELLS, and WorldDatabase.
| void SpellMgr::LoadSpellPetAuras | ( | ) |
Definition at line 2070 of file SpellMgr.cpp.
References SpellEffectInfo::ApplyAuraName, SpellEffectInfo::CalcValue(), SpellEffectInfo::Effect, SpellInfo::Effects, getMSTime(), GetMSTimeDiffToNow(), GetSpellInfo(), SpellImplicitTargetInfo::GetTarget(), Field::GetUInt32(), Field::GetUInt8(), mSpellPetAuraMap, SF_LOG_ERROR, SF_LOG_INFO, SPELL_AURA_DUMMY, SPELL_EFFECT_APPLY_AURA, SPELL_EFFECT_DUMMY, TARGET_UNIT_PET, SpellEffectInfo::TargetA, and WorldDatabase.
| void SpellMgr::LoadSpellProcEvents | ( | ) |
Definition at line 1743 of file SpellMgr.cpp.
References SpellProcEventEntry::cooldown, SpellProcEventEntry::customChance, SpellInfo::GetFirstRankSpell(), Field::GetFloat(), Field::GetInt32(), Field::GetInt8(), getMSTime(), GetMSTimeDiffToNow(), SpellInfo::GetNextRankSpell(), GetSpellInfo(), Field::GetUInt16(), Field::GetUInt32(), SpellInfo::Id, SpellInfo::IsRanked(), mSpellProcEventMap, SpellProcEventEntry::ppmRate, SpellProcEventEntry::procEx, SpellInfo::ProcFlags, SpellProcEventEntry::procFlags, SpellProcEventEntry::schoolMask, SF_LOG_ERROR, SF_LOG_INFO, SpellProcEventEntry::spellFamilyMask, SpellProcEventEntry::spellFamilyName, and WorldDatabase.
| void SpellMgr::LoadSpellProcs | ( | ) |
Definition at line 1831 of file SpellMgr.cpp.
References SpellProcEntry::attributesMask, SpellProcEntry::chance, SpellProcEntry::charges, SpellProcEntry::cooldown, DONE_HIT_PROC_FLAG_MASK, SpellInfo::GetFirstRankSpell(), Field::GetFloat(), Field::GetInt32(), Field::GetInt8(), getMSTime(), GetMSTimeDiffToNow(), SpellInfo::GetNextRankSpell(), GetSpellInfo(), Field::GetUInt16(), Field::GetUInt32(), SpellProcEntry::hitMask, SpellInfo::Id, SpellInfo::IsRanked(), mSpellProcMap, PERIODIC_PROC_FLAG_MASK, PROC_HIT_MASK_ALL, PROC_SPELL_PHASE_FINISH, PROC_SPELL_PHASE_HIT, PROC_SPELL_PHASE_MASK_ALL, PROC_SPELL_TYPE_MASK_ALL, SpellInfo::ProcChance, SpellInfo::ProcCharges, SpellInfo::ProcFlags, SpellProcEntry::ratePerMinute, REQ_SPELL_PHASE_PROC_FLAG_MASK, SpellProcEntry::schoolMask, SF_LOG_ERROR, SF_LOG_INFO, SPELL_PROC_FLAG_MASK, SPELL_SCHOOL_MASK_ALL, SpellProcEntry::spellFamilyMask, SpellProcEntry::spellFamilyName, SpellProcEntry::spellPhaseMask, SpellProcEntry::spellTypeMask, TAKEN_HIT_PROC_FLAG_MASK, SpellProcEntry::typeMask, and WorldDatabase.
| void SpellMgr::LoadSpellRanks | ( | ) |
Definition at line 1144 of file SpellMgr.cpp.
References getMSTime(), GetMSTimeDiffToNow(), GetSpellInfo(), Field::GetUInt32(), Field::GetUInt8(), LoadSpellTalentRanks(), mSpellChains, mSpellInfoMap, SF_LOG_ERROR, SF_LOG_INFO, and WorldDatabase.
| void SpellMgr::LoadSpellRequired | ( | ) |
Definition at line 1258 of file SpellMgr.cpp.
References getMSTime(), GetMSTimeDiffToNow(), GetSpellInfo(), Field::GetUInt32(), SpellInfo::IsRankOf(), IsSpellRequiringSpell(), mSpellReq, mSpellsReqSpell, SF_LOG_ERROR, SF_LOG_INFO, and WorldDatabase.
| void SpellMgr::LoadSpellTalentRanks | ( | ) |
Definition at line 1139 of file SpellMgr.cpp.
Referenced by LoadSpellRanks().
| void SpellMgr::LoadSpellTargetPositions | ( | ) |
Definition at line 1520 of file SpellMgr.cpp.
References SpellInfo::Effects, Field::GetFloat(), getMSTime(), GetMSTimeDiffToNow(), GetSpellInfo(), SpellImplicitTargetInfo::GetTarget(), Field::GetUInt16(), Field::GetUInt32(), mSpellTargetPositions, SF_LOG_ERROR, SF_LOG_INFO, sMapStore, TARGET_DEST_DB, SpellTargetPosition::target_mapId, SpellTargetPosition::target_Orientation, SpellTargetPosition::target_X, SpellTargetPosition::target_Y, SpellTargetPosition::target_Z, SpellEffectInfo::TargetA, SpellEffectInfo::TargetB, and WorldDatabase.
| void SpellMgr::LoadSpellThreats | ( | ) |
Definition at line 2010 of file SpellMgr.cpp.
References SpellThreatEntry::apPctMod, SpellThreatEntry::flatMod, Field::GetFloat(), Field::GetInt32(), getMSTime(), GetMSTimeDiffToNow(), GetSpellInfo(), Field::GetUInt32(), mSpellThreatMap, SpellThreatEntry::pctMod, SF_LOG_ERROR, SF_LOG_INFO, and WorldDatabase.
Definition at line 416 of file SpellMgr.cpp.
References mSpellDifficultySearcherMap.
| void SpellMgr::UnloadSpellInfoChains | ( | ) |
Definition at line 1131 of file SpellMgr.cpp.
References mSpellChains, and mSpellInfoMap.
| void SpellMgr::UnloadSpellInfoImplicitTargetConditionLists | ( | ) |
Definition at line 2677 of file SpellMgr.cpp.
References GetSpellInfoStoreSize(), and mSpellInfoMap.
| void SpellMgr::UnloadSpellInfoStore | ( | ) |
Definition at line 2669 of file SpellMgr.cpp.
References GetSpellInfoStoreSize(), and mSpellInfoMap.
Referenced by LoadSpellInfoStore(), and ~SpellMgr().
|
friend |
Definition at line 553 of file SpellMgr.h.
References MAX_CREATURE_SPELL_DATA_SLOT.
|
private |
Definition at line 732 of file SpellMgr.h.
Referenced by IsArenaAllowedEnchancment(), and LoadEnchantCustomAttr().
|
private |
Definition at line 740 of file SpellMgr.h.
Referenced by GetPetDefaultSpellsEntry(), and LoadPetDefaultSpells().
|
private |
Definition at line 739 of file SpellMgr.h.
Referenced by GetPetLevelupSpellList(), and LoadPetLevelupSpellMap().
|
private |
Definition at line 738 of file SpellMgr.h.
Referenced by GetSkillLineAbilityMapBounds(), and LoadSkillLineAbilityMap().
|
private |
Definition at line 737 of file SpellMgr.h.
Referenced by GetSpellAreaForAreaMapBounds(), and LoadSpellAreas().
|
private |
Definition at line 736 of file SpellMgr.h.
Referenced by GetSpellAreaForAuraMapBounds(), and LoadSpellAreas().
|
private |
Definition at line 735 of file SpellMgr.h.
Referenced by GetSpellAreaForQuestEndMapBounds(), and LoadSpellAreas().
|
private |
Definition at line 734 of file SpellMgr.h.
Referenced by GetSpellAreaForQuestMapBounds(), and LoadSpellAreas().
|
private |
Definition at line 733 of file SpellMgr.h.
Referenced by GetSpellAreaMapBounds(), and LoadSpellAreas().
|
private |
Definition at line 727 of file SpellMgr.h.
Referenced by GetSpellBonusData(), and LoadSpellBonusess().
|
private |
Definition at line 716 of file SpellMgr.h.
Referenced by GetSpellChainNode(), LoadSpellRanks(), and UnloadSpellInfoChains().
|
private |
Definition at line 715 of file SpellMgr.h.
Referenced by GetSpellDifficultyId(), and SetSpellDifficultyId().
|
private |
Definition at line 731 of file SpellMgr.h.
Referenced by GetSpellEnchantProcEvent(), and LoadSpellEnchantProcData().
|
private |
Definition at line 723 of file SpellMgr.h.
Referenced by GetSpellGroupSpellMapBounds(), and LoadSpellGroups().
|
private |
Definition at line 724 of file SpellMgr.h.
Referenced by AddSameEffectStackRuleSpellGroups(), CheckSpellGroupStackRules(), and LoadSpellGroupStackRules().
|
private |
Definition at line 741 of file SpellMgr.h.
Referenced by _GetSpellInfo(), GetSpellInfo(), GetSpellInfoStoreSize(), LoadSpellInfoCorrections(), LoadSpellInfoCustomAttributes(), LoadSpellInfoStore(), LoadSpellRanks(), UnloadSpellInfoChains(), UnloadSpellInfoImplicitTargetConditionLists(), and UnloadSpellInfoStore().
|
private |
Definition at line 719 of file SpellMgr.h.
Referenced by GetSpellLearnSkill(), and LoadSpellLearnSkills().
|
private |
Definition at line 720 of file SpellMgr.h.
Referenced by GetSpellLearnSpellMapBounds(), IsSpellLearnSpell(), and LoadSpellLearnSpells().
|
private |
Definition at line 730 of file SpellMgr.h.
Referenced by GetSpellLinked(), and LoadSpellLinked().
|
private |
Definition at line 729 of file SpellMgr.h.
Referenced by GetPetAura(), and LoadSpellPetAuras().
|
private |
Definition at line 725 of file SpellMgr.h.
Referenced by GetSpellProcEvent(), and LoadSpellProcEvents().
|
private |
Definition at line 726 of file SpellMgr.h.
Referenced by GetSpellProcEntry(), and LoadSpellProcs().
|
private |
Definition at line 718 of file SpellMgr.h.
Referenced by GetSpellsRequiredForSpellBounds(), and LoadSpellRequired().
|
private |
Definition at line 722 of file SpellMgr.h.
Referenced by GetSpellSpellGroupMapBounds(), and LoadSpellGroups().
|
private |
Definition at line 717 of file SpellMgr.h.
Referenced by GetSpellsRequiringSpellBounds(), and LoadSpellRequired().
|
private |
Definition at line 721 of file SpellMgr.h.
Referenced by GetSpellTargetPosition(), and LoadSpellTargetPositions().
|
private |
Definition at line 728 of file SpellMgr.h.
Referenced by GetSpellThreatEntry(), and LoadSpellThreats().