TrinityCore
Spell.cpp File Reference
#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 "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 "UniqueTrackablePtr.h"
#include "Util.h"
#include "VMapFactory.h"
#include "Vehicle.h"
#include "VMapManager2.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
 

Functions

float tangent (float x)
 
template<class T >
void FillSpellCastFailedArgs (T &packet, ObjectGuid castId, SpellInfo const *spellInfo, SpellCastResult result, SpellCustomErrors customError, int32 *param1, int32 *param2, Player *caster)
 
static std::pair< int32, SpellHealPredictionTypeCalcPredictedHealing (SpellInfo const *spellInfo, Unit const *unitCaster, Unit *target, uint32 castItemEntry, int32 castItemLevel, Spell *spell, bool withPeriodic)
 
bool CanHaveGlobalCooldown (WorldObject const *caster)
 
void Trinity::SelectRandomInjuredTargets (std::list< WorldObject * > &targets, size_t maxTargets, bool prioritizePlayers, Unit const *prioritizeGroupMembersOf)
 

Variables

NonDefaultConstructible< SpellEffectHandlerFnSpellEffectHandlers [TOTAL_SPELL_EFFECTS]
 

Function Documentation

◆ CalcPredictedHealing()

static std::pair< int32, SpellHealPredictionType > CalcPredictedHealing ( SpellInfo const *  spellInfo,
Unit const *  unitCaster,
Unit target,
uint32  castItemEntry,
int32  castItemLevel,
Spell spell,
bool  withPeriodic 
)
static

Definition at line 4978 of file Spell.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ CanHaveGlobalCooldown()

bool CanHaveGlobalCooldown ( WorldObject const *  caster)

Definition at line 8951 of file Spell.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FillSpellCastFailedArgs()

template<class T >
void FillSpellCastFailedArgs ( T &  packet,
ObjectGuid  castId,
SpellInfo const *  spellInfo,
SpellCastResult  result,
SpellCustomErrors  customError,
int32 param1,
int32 param2,
Player caster 
)
inline

Definition at line 4388 of file Spell.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ tangent()

float tangent ( float  x)

Definition at line 1854 of file Spell.cpp.

+ Here is the caller graph for this function:

Variable Documentation

◆ SpellEffectHandlers

Definition at line 89 of file SpellEffects.cpp.