AzerothCore 3.3.5a
OpenSource WoW Emulator
|
#include "SpellMgr.h"
#include "BattlefieldMgr.h"
#include "BattlegroundIC.h"
#include "BattlegroundMgr.h"
#include "Chat.h"
#include "DBCStores.h"
#include "GameGraveyard.h"
#include "InstanceScript.h"
#include "MapMgr.h"
#include "ObjectMgr.h"
#include "Player.h"
#include "ScriptMgr.h"
#include "SharedDefines.h"
#include "Spell.h"
#include "SpellAuraDefines.h"
#include "SpellInfo.h"
#include "World.h"
Go to the source code of this file.
Functions | |
bool | IsPrimaryProfessionSkill (uint32 skill) |
bool | IsPartOfSkillLine (uint32 skillId, uint32 spellId) |
DiminishingGroup | GetDiminishingReturnsGroupForSpell (SpellInfo const *spellproto, bool triggered) |
DiminishingReturnsType | GetDiminishingReturnsGroupType (DiminishingGroup group) |
DiminishingLevels | GetDiminishingReturnsMaxLevel (DiminishingGroup group) |
int32 | GetDiminishingReturnsLimitDuration (DiminishingGroup group, SpellInfo const *spellproto) |
bool | IsDiminishingReturnsGroupDurationLimited (DiminishingGroup group) |
void | DeleteSpellFromAllPlayers (uint32 spellId) |
bool | LoadPetDefaultSpells_helper (CreatureTemplate const *cInfo, PetDefaultSpellsEntry &petDefSpells) |
void DeleteSpellFromAllPlayers | ( | uint32 | spellId | ) |
References CHAR_DEL_INVALID_SPELL_SPELLS, CHAR_DEL_INVALID_SPELL_TALENTS, CharacterDatabase, and PreparedStatementBase::SetData().
Referenced by SpellMgr::CheckSpellValid().
DiminishingGroup GetDiminishingReturnsGroupForSpell | ( | SpellInfo const * | spellproto, |
bool | triggered | ||
) |
References DIMINISHING_BANISH, DIMINISHING_CHARGE, DIMINISHING_CONTROLLED_ROOT, DIMINISHING_CONTROLLED_STUN, DIMINISHING_CYCLONE, DIMINISHING_DISARM, DIMINISHING_DISORIENT, DIMINISHING_DRAGONS_BREATH, DIMINISHING_ENTRAPMENT, DIMINISHING_FEAR, DIMINISHING_HORROR, DIMINISHING_LIMITONLY, DIMINISHING_MIND_CONTROL, DIMINISHING_NONE, DIMINISHING_OPENING_STUN, DIMINISHING_ROOT, DIMINISHING_SCATTER_SHOT, DIMINISHING_SILENCE, DIMINISHING_SLEEP, DIMINISHING_STUN, DIMINISHING_TAUNT, SpellInfo::Effects, SpellInfo::GetAllEffectsMechanicMask(), SpellInfo::Id, SpellInfo::IsPositive(), MAX_SPELL_EFFECTS, MECHANIC_BANISH, MECHANIC_CHARM, MECHANIC_DISARM, MECHANIC_FEAR, MECHANIC_HORROR, MECHANIC_KNOCKOUT, MECHANIC_POLYMORPH, MECHANIC_ROOT, MECHANIC_SAPPED, MECHANIC_SHACKLE, MECHANIC_SILENCE, MECHANIC_SLEEP, MECHANIC_STUN, SPELL_AURA_MOD_TAUNT, SPELLFAMILY_DEATHKNIGHT, SPELLFAMILY_DRUID, SPELLFAMILY_GENERIC, SPELLFAMILY_HUNTER, SPELLFAMILY_MAGE, SPELLFAMILY_PALADIN, SPELLFAMILY_ROGUE, SPELLFAMILY_SHAMAN, SPELLFAMILY_UNK1, SPELLFAMILY_WARLOCK, SPELLFAMILY_WARRIOR, SpellInfo::SpellFamilyFlags, SpellInfo::SpellFamilyName, SpellInfo::SpellIconID, and SpellInfo::SpellVisual.
Referenced by Spell::DoSpellHitOnUnit().
DiminishingReturnsType GetDiminishingReturnsGroupType | ( | DiminishingGroup | group | ) |
References DIMINISHING_CHARGE, DIMINISHING_CONTROLLED_STUN, DIMINISHING_CYCLONE, DIMINISHING_LIMITONLY, DIMINISHING_NONE, DIMINISHING_OPENING_STUN, DIMINISHING_STUN, DIMINISHING_TAUNT, DRTYPE_ALL, DRTYPE_NONE, and DRTYPE_PLAYER.
Referenced by Unit::ApplyDiminishingToDuration(), and Spell::DoSpellHitOnUnit().
int32 GetDiminishingReturnsLimitDuration | ( | DiminishingGroup | group, |
SpellInfo const * | spellproto | ||
) |
References IN_MILLISECONDS, IsDiminishingReturnsGroupDurationLimited(), SPELLFAMILY_DRUID, SPELLFAMILY_HUNTER, SPELLFAMILY_PALADIN, SPELLFAMILY_WARLOCK, SpellInfo::SpellFamilyFlags, and SpellInfo::SpellFamilyName.
Referenced by Spell::DoSpellHitOnUnit().
DiminishingLevels GetDiminishingReturnsMaxLevel | ( | DiminishingGroup | group | ) |
References DIMINISHING_LEVEL_IMMUNE, DIMINISHING_LEVEL_TAUNT_IMMUNE, and DIMINISHING_TAUNT.
Referenced by Unit::IncrDiminishing().
bool IsDiminishingReturnsGroupDurationLimited | ( | DiminishingGroup | group | ) |
References DIMINISHING_BANISH, DIMINISHING_CONTROLLED_ROOT, DIMINISHING_CONTROLLED_STUN, DIMINISHING_CYCLONE, DIMINISHING_DISORIENT, DIMINISHING_ENTRAPMENT, DIMINISHING_FEAR, DIMINISHING_HORROR, DIMINISHING_LIMITONLY, DIMINISHING_MIND_CONTROL, DIMINISHING_OPENING_STUN, DIMINISHING_ROOT, DIMINISHING_SLEEP, and DIMINISHING_STUN.
Referenced by GetDiminishingReturnsLimitDuration().
References sSpellMgr.
Referenced by SpellMgr::LoadSpellInfoCustomAttributes().
bool IsPrimaryProfessionSkill | ( | uint32 | skill | ) |
References SkillLineEntry::categoryId, SKILL_CATEGORY_PROFESSION, and sSkillLineStore.
Referenced by WorldSession::HandleUnlearnSkillOpcode(), SpellInfo::IsPrimaryProfession(), and IsProfessionSkill().
bool LoadPetDefaultSpells_helper | ( | CreatureTemplate const * | cInfo, |
PetDefaultSpellsEntry & | petDefSpells | ||
) |
References CreatureTemplate::family, MAX_CREATURE_SPELL_DATA_SLOT, PetDefaultSpellsEntry::spellid, and sSpellMgr.
Referenced by SpellMgr::LoadPetDefaultSpells().