![]() |
TrinityCore
|
#include <SpellAuras.h>
Inheritance diagram for Aura:Classes | |
| struct | NoopAuraDeleter |
Public Types | |
| typedef std::unordered_map< ObjectGuid, AuraApplication * > | ApplicationMap |
Static Public Member Functions | |
| static uint8 | BuildEffectMaskForOwner (SpellInfo const *spellProto, uint8 availableEffectMask, WorldObject *owner) |
| static Aura * | TryRefreshStackOrCreate (AuraCreateInfo &createInfo, bool updateEffectMask=true) |
| static Aura * | TryCreate (AuraCreateInfo &createInfo) |
| static Aura * | Create (AuraCreateInfo &createInfo) |
| static int32 | CalcMaxDuration (SpellInfo const *spellInfo, WorldObject *caster) |
Public Attributes | |
| std::vector< AuraScript * > | m_loadedScripts |
Protected Attributes | |
| SpellInfo const *const | m_spellInfo |
| ObjectGuid const | m_casterGuid |
| ObjectGuid const | m_castItemGuid |
| time_t const | m_applyTime |
| WorldObject *const | m_owner |
| int32 | m_maxDuration |
| int32 | m_duration |
| int32 | m_timeCla |
| int32 | m_updateTargetMapInterval |
| CasterInfo | _casterInfo |
| uint8 | m_procCharges |
| uint8 | m_stackAmount |
| AuraEffect * | m_effects [MAX_SPELL_EFFECTS] |
| ApplicationMap | m_applications |
| bool | m_isRemoved:1 |
| bool | m_isSingleTarget:1 |
| bool | m_isUsingCharges:1 |
| ChargeDropEvent * | m_dropEvent |
| TimePoint | m_procCooldown |
Private Member Functions | |
| AuraScript * | GetScriptByName (std::string const &scriptName) const |
| void | _DeleteRemovedApplications () |
Private Attributes | |
| std::vector< AuraApplication * > | _removedApplications |
| Trinity::unique_trackable_ptr< Aura > | m_scriptRef |
Friends | |
| class | Unit |
Definition at line 99 of file SpellAuras.h.
| typedef std::unordered_map<ObjectGuid, AuraApplication*> Aura::ApplicationMap |
Definition at line 104 of file SpellAuras.h.
|
explicit |
|
virtual |
|
delete |
|
delete |
| void Aura::_ApplyEffectForTargets | ( | uint8 | effIndex | ) |
Definition at line 762 of file SpellAuras.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
virtual |
Reimplemented in UnitAura.
Definition at line 553 of file SpellAuras.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 460 of file SpellAuras.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
| void Aura::_Remove | ( | AuraRemoveMode | removeMode | ) |
Definition at line 603 of file SpellAuras.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
virtual |
Reimplemented in UnitAura.
Definition at line 573 of file SpellAuras.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void Aura::AddProcCooldown | ( | TimePoint | cooldownEnd | ) |
|
inline |
Definition at line 136 of file SpellAuras.h.
|
static |
Definition at line 270 of file SpellAuras.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 1172 of file SpellAuras.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 158 of file SpellAuras.h.
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 944 of file SpellAuras.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 145 of file SpellAuras.h.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
| float Aura::CalcPeriodicCritChance | ( | Unit const * | caster | ) | const |
Definition at line 483 of file SpellAuras.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| float Aura::CalcProcChance | ( | SpellProcEntry const & | procEntry, |
| ProcEventInfo & | eventInfo | ||
| ) | const |
Definition at line 2123 of file SpellAuras.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void Aura::CallScriptAfterDispel | ( | DispelInfo * | dispelInfo | ) |
| void Aura::CallScriptAfterEffectApplyHandlers | ( | AuraEffect const * | aurEff, |
| AuraApplication const * | aurApp, | ||
| AuraEffectHandleModes | mode | ||
| ) |
Definition at line 2269 of file SpellAuras.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void Aura::CallScriptAfterEffectProcHandlers | ( | AuraEffect const * | aurEff, |
| AuraApplication const * | aurApp, | ||
| ProcEventInfo & | eventInfo | ||
| ) |
Definition at line 2548 of file SpellAuras.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void Aura::CallScriptAfterEffectRemoveHandlers | ( | AuraEffect const * | aurEff, |
| AuraApplication const * | aurApp, | ||
| AuraEffectHandleModes | mode | ||
| ) |
Definition at line 2283 of file SpellAuras.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void Aura::CallScriptAfterProcHandlers | ( | AuraApplication const * | aurApp, |
| ProcEventInfo & | eventInfo | ||
| ) |
| bool Aura::CallScriptCheckAreaTargetHandlers | ( | Unit * | target | ) |
| bool Aura::CallScriptCheckEffectProcHandlers | ( | AuraEffect const * | aurEff, |
| AuraApplication const * | aurApp, | ||
| ProcEventInfo & | eventInfo | ||
| ) |
Definition at line 2512 of file SpellAuras.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| bool Aura::CallScriptCheckProcHandlers | ( | AuraApplication const * | aurApp, |
| ProcEventInfo & | eventInfo | ||
| ) |
| void Aura::CallScriptDispel | ( | DispelInfo * | dispelInfo | ) |
| void Aura::CallScriptEffectAbsorbHandlers | ( | AuraEffect * | aurEff, |
| AuraApplication const * | aurApp, | ||
| DamageInfo & | dmgInfo, | ||
| uint32 & | absorbAmount, | ||
| bool & | defaultPrevented | ||
| ) |
Definition at line 2373 of file SpellAuras.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void Aura::CallScriptEffectAfterAbsorbHandlers | ( | AuraEffect * | aurEff, |
| AuraApplication const * | aurApp, | ||
| DamageInfo & | dmgInfo, | ||
| uint32 & | absorbAmount | ||
| ) |
Definition at line 2391 of file SpellAuras.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void Aura::CallScriptEffectAfterManaShieldHandlers | ( | AuraEffect * | aurEff, |
| AuraApplication const * | aurApp, | ||
| DamageInfo & | dmgInfo, | ||
| uint32 & | absorbAmount | ||
| ) |
Definition at line 2419 of file SpellAuras.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| bool Aura::CallScriptEffectApplyHandlers | ( | AuraEffect const * | aurEff, |
| AuraApplication const * | aurApp, | ||
| AuraEffectHandleModes | mode | ||
| ) |
Definition at line 2230 of file SpellAuras.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void Aura::CallScriptEffectCalcAmountHandlers | ( | AuraEffect const * | aurEff, |
| int32 & | amount, | ||
| bool & | canBeRecalculated | ||
| ) |
Definition at line 2331 of file SpellAuras.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void Aura::CallScriptEffectCalcPeriodicHandlers | ( | AuraEffect const * | aurEff, |
| bool & | isPeriodic, | ||
| int32 & | amplitude | ||
| ) |
Definition at line 2345 of file SpellAuras.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void Aura::CallScriptEffectCalcSpellModHandlers | ( | AuraEffect const * | aurEff, |
| SpellModifier *& | spellMod | ||
| ) |
Definition at line 2359 of file SpellAuras.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void Aura::CallScriptEffectManaShieldHandlers | ( | AuraEffect * | aurEff, |
| AuraApplication const * | aurApp, | ||
| DamageInfo & | dmgInfo, | ||
| uint32 & | absorbAmount, | ||
| bool & | defaultPrevented | ||
| ) |
Definition at line 2405 of file SpellAuras.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| bool Aura::CallScriptEffectPeriodicHandlers | ( | AuraEffect const * | aurEff, |
| AuraApplication const * | aurApp | ||
| ) |
Definition at line 2297 of file SpellAuras.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| bool Aura::CallScriptEffectProcHandlers | ( | AuraEffect const * | aurEff, |
| AuraApplication const * | aurApp, | ||
| ProcEventInfo & | eventInfo | ||
| ) |
Definition at line 2529 of file SpellAuras.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| bool Aura::CallScriptEffectRemoveHandlers | ( | AuraEffect const * | aurEff, |
| AuraApplication const * | aurApp, | ||
| AuraEffectHandleModes | mode | ||
| ) |
Definition at line 2250 of file SpellAuras.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void Aura::CallScriptEffectSplitHandlers | ( | AuraEffect * | aurEff, |
| AuraApplication const * | aurApp, | ||
| DamageInfo & | dmgInfo, | ||
| uint32 & | splitAmount | ||
| ) |
| void Aura::CallScriptEffectUpdatePeriodicHandlers | ( | AuraEffect * | aurEff | ) |
Definition at line 2317 of file SpellAuras.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| bool Aura::CallScriptPrepareProcHandlers | ( | AuraApplication const * | aurApp, |
| ProcEventInfo & | eventInfo | ||
| ) |
| bool Aura::CallScriptProcHandlers | ( | AuraApplication const * | aurApp, |
| ProcEventInfo & | eventInfo | ||
| ) |
|
inline |
| bool Aura::CanBeAppliedOn | ( | Unit * | target | ) |
Definition at line 1802 of file SpellAuras.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| bool Aura::CanBeSaved | ( | ) | const |
| bool Aura::CanBeSentToClient | ( | ) | const |
| bool Aura::CanPeriodicTickCrit | ( | Unit const * | caster | ) | const |
Definition at line 468 of file SpellAuras.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| bool Aura::CanStackWith | ( | Aura const * | existingAura | ) | const |
Definition at line 1824 of file SpellAuras.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| bool Aura::CheckAreaTarget | ( | Unit * | target | ) |
Definition at line 1819 of file SpellAuras.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 353 of file SpellAuras.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
| void Aura::DropChargeDelayed | ( | uint32 | delay, |
| AuraRemoveMode | removeMode = AURA_REMOVE_BY_DEFAULT |
||
| ) |
|
inline |
|
inline |
Definition at line 210 of file SpellAuras.h.
|
inline |
| void Aura::GetApplicationVector | ( | std::vector< AuraApplication * > & | applicationVector | ) | const |
|
inline |
| Unit * Aura::GetCaster | ( | ) | const |
Definition at line 540 of file SpellAuras.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
virtual |
Definition at line 2562 of file SpellAuras.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 173 of file SpellAuras.h.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| uint8 Aura::GetProcEffectMask | ( | AuraApplication * | aurApp, |
| ProcEventInfo & | eventInfo, | ||
| TimePoint | now | ||
| ) | const |
Definition at line 2001 of file SpellAuras.cpp.
Here is the call graph for this function:Definition at line 264 of file SpellAuras.h.
|
private |
Definition at line 452 of file SpellAuras.cpp.
|
inline |
|
inline |
| AuraObjectType Aura::GetType | ( | ) | const |
Definition at line 548 of file SpellAuras.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
|
inline |
Definition at line 273 of file SpellAuras.h.
| void Aura::HandleAllEffects | ( | AuraApplication * | aurApp, |
| uint8 | mode, | ||
| bool | apply | ||
| ) |
| void Aura::HandleAuraSpecificMods | ( | AuraApplication const * | aurApp, |
| Unit * | caster, | ||
| bool | apply, | ||
| bool | onReapply | ||
| ) |
Definition at line 1260 of file SpellAuras.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
| bool Aura::HasEffectType | ( | AuraType | type | ) | const |
Definition at line 1215 of file SpellAuras.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| bool Aura::HasMoreThanOneEffectForType | ( | AuraType | auraType | ) | const |
Definition at line 1060 of file SpellAuras.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
| bool Aura::IsArea | ( | ) | const |
Definition at line 1070 of file SpellAuras.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| bool Aura::IsDeathPersistent | ( | ) | const |
Definition at line 1084 of file SpellAuras.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
| bool Aura::IsPassive | ( | ) | const |
Definition at line 1079 of file SpellAuras.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
| bool Aura::IsProcOnCooldown | ( | TimePoint | now | ) | const |
|
inline |
| bool Aura::IsRemovedOnShapeLost | ( | Unit * | target | ) | const |
|
inline |
| bool Aura::IsSingleTargetWith | ( | Aura const * | aura | ) | const |
Definition at line 1141 of file SpellAuras.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
| void Aura::LoadScripts | ( | ) |
| bool Aura::ModCharges | ( | int32 | num, |
| AuraRemoveMode | removeMode = AURA_REMOVE_BY_DEFAULT |
||
| ) |
Definition at line 957 of file SpellAuras.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void Aura::ModChargesDelayed | ( | int32 | num, |
| AuraRemoveMode | removeMode = AURA_REMOVE_BY_DEFAULT |
||
| ) |
Definition at line 980 of file SpellAuras.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| bool Aura::ModStackAmount | ( | int32 | num, |
| AuraRemoveMode | removeMode = AURA_REMOVE_BY_DEFAULT, |
||
| bool | resetPeriodicTimer = true |
||
| ) |
Definition at line 1023 of file SpellAuras.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void Aura::PrepareProcToTrigger | ( | AuraApplication * | aurApp, |
| ProcEventInfo & | eventInfo, | ||
| TimePoint | now | ||
| ) |
| void Aura::RecalculateAmountOfEffects | ( | ) |
Definition at line 1225 of file SpellAuras.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void Aura::RefreshDuration | ( | bool | withMods = false | ) |
Definition at line 898 of file SpellAuras.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void Aura::RefreshTimers | ( | bool | resetPeriodicTimer | ) |
Definition at line 923 of file SpellAuras.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
pure virtual |
| void Aura::ResetProcCooldown | ( | ) |
Definition at line 1976 of file SpellAuras.cpp.
| void Aura::SaveCasterInfo | ( | Unit * | caster | ) |
Definition at line 493 of file SpellAuras.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
| void Aura::SetCharges | ( | uint8 | charges | ) |
Definition at line 934 of file SpellAuras.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
|
inline |
Definition at line 174 of file SpellAuras.h.
| void Aura::SetDuration | ( | int32 | duration, |
| bool | withMods = false |
||
| ) |
Definition at line 887 of file SpellAuras.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
|
inline |
| void Aura::SetNeedClientUpdateForTargets | ( | ) | const |
| void Aura::SetStackAmount | ( | uint8 | num | ) |
Definition at line 1000 of file SpellAuras.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
|
inline |
|
inline |
Definition at line 261 of file SpellAuras.h.
|
inline |
|
inline |
Definition at line 258 of file SpellAuras.h.
| void Aura::TriggerProcOnEvent | ( | uint8 | procEffectMask, |
| AuraApplication * | aurApp, | ||
| ProcEventInfo & | eventInfo | ||
| ) |
Definition at line 2148 of file SpellAuras.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 340 of file SpellAuras.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 300 of file SpellAuras.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void Aura::UnregisterSingleTarget | ( | ) |
Definition at line 1163 of file SpellAuras.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 822 of file SpellAuras.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void Aura::UpdateOwner | ( | uint32 | diff, |
| WorldObject * | owner | ||
| ) |
Definition at line 783 of file SpellAuras.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void Aura::UpdateTargetMap | ( | Unit * | caster, |
| bool | apply = true |
||
| ) |
Definition at line 625 of file SpellAuras.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
friend |
Definition at line 101 of file SpellAuras.h.
|
protected |
Definition at line 297 of file SpellAuras.h.
|
private |
Definition at line 313 of file SpellAuras.h.
|
protected |
Definition at line 302 of file SpellAuras.h.
|
protected |
Definition at line 289 of file SpellAuras.h.
|
protected |
Definition at line 287 of file SpellAuras.h.
|
protected |
Definition at line 288 of file SpellAuras.h.
|
protected |
Definition at line 308 of file SpellAuras.h.
|
protected |
Definition at line 293 of file SpellAuras.h.
|
protected |
Definition at line 301 of file SpellAuras.h.
|
protected |
Definition at line 304 of file SpellAuras.h.
|
protected |
Definition at line 305 of file SpellAuras.h.
|
protected |
Definition at line 306 of file SpellAuras.h.
| std::vector<AuraScript*> Aura::m_loadedScripts |
Definition at line 269 of file SpellAuras.h.
|
protected |
Definition at line 292 of file SpellAuras.h.
|
protected |
Definition at line 290 of file SpellAuras.h.
|
protected |
Definition at line 298 of file SpellAuras.h.
|
protected |
Definition at line 310 of file SpellAuras.h.
|
private |
Definition at line 316 of file SpellAuras.h.
|
protected |
Definition at line 286 of file SpellAuras.h.
|
protected |
Definition at line 299 of file SpellAuras.h.
|
protected |
Definition at line 294 of file SpellAuras.h.
|
protected |
Definition at line 295 of file SpellAuras.h.