![]() |
TrinityCore
|
#include "Spell.h"#include "AzeriteEmpoweredItem.h"#include "Battlefield.h"#include "BattlefieldMgr.h"#include "Battleground.h"#include "BattlePetMgr.h"#include "CellImpl.h"#include "CharmInfo.h"#include "CollectionMgr.h"#include "CombatLogPackets.h"#include "Common.h"#include "ConditionMgr.h"#include "Containers.h"#include "CreatureAI.h"#include "DB2Stores.h"#include "DatabaseEnv.h"#include "DisableMgr.h"#include "DynamicObject.h"#include "G3DPosition.hpp"#include "GameObjectAI.h"#include "GridNotifiersImpl.h"#include "Guild.h"#include "InstanceLockMgr.h"#include "InstanceScript.h"#include "Item.h"#include "Log.h"#include "Loot.h"#include "LootMgr.h"#include "MotionMaster.h"#include "ObjectAccessor.h"#include "ObjectMgr.h"#include "PathGenerator.h"#include "Pet.h"#include "PhasingHandler.h"#include "Player.h"#include "ScriptMgr.h"#include "SharedDefines.h"#include "SpellAuraEffects.h"#include "SpellHistory.h"#include "SpellInfo.h"#include "SpellMgr.h"#include "SpellPackets.h"#include "SpellScript.h"#include "TemporarySummon.h"#include "TradeData.h"#include "TraitPackets.h"#include "TransmogMgr.h"#include "UniqueTrackablePtr.h"#include "Util.h"#include "VMapFactory.h"#include "Vehicle.h"#include "VMapManager.h"#include "World.h"#include "WorldSession.h"#include <numeric>#include <sstream>
Include dependency graph for Spell.cpp:Go to the source code of this file.
Classes | |
| class | SpellEvent |
| class | ProcReflectDelayed |
Namespaces | |
| namespace | Trinity |
Variables | |
| NonDefaultConstructible< SpellEffectHandlerFn > | SpellEffectHandlers [TOTAL_SPELL_EFFECTS] |
|
static |
Definition at line 4979 of file Spell.cpp.
References CalcPredictedHealing(), SpellInfo::Difficulty, DIRECT_DAMAGE, SpellInfo::GetEffects(), SPELL_AURA_OBS_MOD_HEALTH, SPELL_AURA_PERIODIC_HEAL, SPELL_AURA_PERIODIC_TRIGGER_SPELL, SPELL_EFFECT_HEAL, SPELL_EFFECT_HEAL_PCT, SPELL_HEAL_PREDICTION_TARGET, SPELL_HEAL_PREDICTION_TARGET_AND_CASTER, SPELL_HEAL_PREDICTION_TARGET_PARTY, Unit::SpellHealingBonusDone(), sSpellMgr, TARGET_CHECK_PARTY, and TARGET_UNIT_CASTER.
Referenced by CalcPredictedHealing(), and Spell::UpdateSpellHealPrediction().
| bool CanHaveGlobalCooldown | ( | WorldObject const * | caster | ) |
Definition at line 9162 of file Spell.cpp.
References Unit::GetCharmInfo(), BaseEntity::GetTypeId(), Object::ToCreature(), TYPEID_PLAYER, and TYPEID_UNIT.
Referenced by Spell::CancelGlobalCooldown(), Spell::HasGlobalCooldown(), and Spell::TriggerGlobalCooldown().
|
inline |
Definition at line 4454 of file Spell.cpp.
References ASSERT, SpellInfo::EquippedItemClass, SpellInfo::EquippedItemSubClassMask, SpellInfo::Id, SpellInfo::RequiresSpellFocus, SPELL_FAILED_CANT_UNTALENT, SPELL_FAILED_CUSTOM_ERROR, SPELL_FAILED_EQUIPPED_ITEM_CLASS, SPELL_FAILED_EQUIPPED_ITEM_CLASS_MAINHAND, SPELL_FAILED_EQUIPPED_ITEM_CLASS_OFFHAND, SPELL_FAILED_FISHING_TOO_LOW, SPELL_FAILED_INTERRUPTED_COMBAT, SPELL_FAILED_MIN_SKILL, SPELL_FAILED_NEED_EXOTIC_AMMO, SPELL_FAILED_NEED_MORE_ITEMS, SPELL_FAILED_NOT_READY, SPELL_FAILED_PREVENTED_BY_MECHANIC, SPELL_FAILED_REAGENTS, SPELL_FAILED_REQUIRES_AREA, SPELL_FAILED_REQUIRES_SPELL_FOCUS, SPELL_FAILED_SILENCED, SPELL_FAILED_TOO_MANY_OF_ITEM, SPELL_FAILED_TOTEM_CATEGORY, SPELL_FAILED_TOTEMS, SpellInfo::Totem, and SpellInfo::TotemCategory.
Referenced by Spell::SendCastResult(), Spell::SendCastResult(), and Spell::SendPetCastResult().
| template TC_GAME_API void Spell::SearchTargets< Trinity::UnitListSearcher< Trinity::WorldObjectSpellAreaTargetCheck > > | ( | Trinity::UnitListSearcher< Trinity::WorldObjectSpellAreaTargetCheck > & | searcher, |
| uint32 | containerMask, | ||
| WorldObject * | referer, | ||
| Position const * | pos, | ||
| float | radius | ||
| ) |
| template TC_GAME_API void Spell::SearchTargets< Trinity::WorldObjectListSearcher< Trinity::WorldObjectSpellAreaTargetCheck > > | ( | Trinity::WorldObjectListSearcher< Trinity::WorldObjectSpellAreaTargetCheck > & | searcher, |
| uint32 | containerMask, | ||
| WorldObject * | referer, | ||
| Position const * | pos, | ||
| float | radius | ||
| ) |
| float tangent | ( | float | x | ) |
Definition at line 1866 of file Spell.cpp.
Referenced by Spell::SelectImplicitTrajTargets().
|
extern |
Definition at line 90 of file SpellEffects.cpp.