![]() |
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 uint32 | BuildEffectMaskForOwner (SpellInfo const *spellProto, uint32 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 const *caster, std::vector< SpellPowerCost > const *powerCosts) |
| static bool | EffectTypeNeedsSendingAmount (AuraType type) |
Public Attributes | |
| std::vector< AuraScript * > | m_loadedScripts |
Protected Attributes | |
| SpellInfo const *const | m_spellInfo |
| Difficulty const | m_castDifficulty |
| ObjectGuid const | m_castId |
| ObjectGuid const | m_casterGuid |
| ObjectGuid const | m_castItemGuid |
| uint32 | m_castItemId |
| int32 | m_castItemLevel |
| SpellCastVisual | m_spellVisual |
| time_t const | m_applyTime |
| WorldObject *const | m_owner |
| int32 | m_maxDuration |
| int32 | m_duration |
| int32 | m_timeCla |
| std::vector< SpellPowerEntry const * > | m_periodicCosts |
| int32 | m_updateTargetMapInterval |
| uint8 const | m_casterLevel |
| uint8 | m_procCharges |
| uint8 | m_stackAmount |
| AuraEffectVector | m_effects |
| ApplicationMap | m_applications |
| bool | m_isRemoved |
| bool | m_isSingleTarget |
| bool | m_isUsingCharges |
| ChargeDropEvent * | m_dropEvent |
| TimePoint | m_procCooldown |
| TimePoint | m_lastProcAttemptTime |
| TimePoint | m_lastProcSuccessTime |
Private Member Functions | |
| AuraScript * | GetScriptByType (std::type_info const &type) const |
| void | _DeleteRemovedApplications () |
Private Attributes | |
| std::vector< AuraApplication * > | _removedApplications |
| Trinity::unique_trackable_ptr< Aura > | m_scriptRef |
Friends | |
| class | Unit |
Definition at line 167 of file SpellAuras.h.
| typedef std::unordered_map<ObjectGuid, AuraApplication*> Aura::ApplicationMap |
Definition at line 172 of file SpellAuras.h.
|
explicit |
Definition at line 476 of file SpellAuras.cpp.
References CalcMaxCharges(), CalcMaxDuration(), AuraCreateInfo::Caster, SpellInfo::HasAttribute(), IN_MILLISECONDS, m_duration, m_isUsingCharges, m_maxDuration, m_periodicCosts, m_procCharges, m_spellInfo, m_timeCla, SpellInfo::PowerCosts, and SPELL_ATTR6_DO_NOT_CONSUME_RESOURCES.
|
virtual |
Definition at line 535 of file SpellAuras.cpp.
References _DeleteRemovedApplications(), ASSERT, m_applications, m_effects, and m_loadedScripts.
|
delete |
|
delete |
| void Aura::_ApplyEffectForTargets | ( | uint8 | effIndex | ) |
Definition at line 796 of file SpellAuras.cpp.
References ASSERT, GetApplicationOfTarget(), GetOwner(), and m_applications.
Referenced by Spell::EffectPersistentAA().
|
virtual |
Reimplemented in UnitAura.
Definition at line 586 of file SpellAuras.cpp.
References ASSERT, Object::GetEntry(), BaseEntity::GetGUID(), Player::GetItemByGuid(), Unit::GetSpellHistory(), BaseEntity::GetTypeId(), IsAppliedOnTarget(), SpellInfo::IsCooldownStartedOnEvent(), ObjectGuid::IsEmpty(), m_applications, m_castItemGuid, m_spellInfo, SpellHistory::StartCooldown(), Object::ToPlayer(), and TYPEID_PLAYER.
Referenced by UnitAura::_ApplyForTarget(), and Unit::_CreateAuraApplication().
|
private |
Definition at line 2049 of file SpellAuras.cpp.
References _removedApplications.
Referenced by UpdateOwner(), and ~Aura().
| void Aura::_InitEffects | ( | uint32 | effMask, |
| Unit * | caster, | ||
| SpellEffectValue const * | baseAmount | ||
| ) |
Definition at line 511 of file SpellAuras.cpp.
References SpellInfo::GetEffects(), GetSpellInfo(), and m_effects.
Referenced by DynObjAura::DynObjAura(), and UnitAura::UnitAura().
|
inline |
Definition at line 209 of file SpellAuras.h.
Referenced by Spell::EffectPersistentAA().
| void Aura::_Remove | ( | AuraRemoveMode | removeMode | ) |
Definition at line 636 of file SpellAuras.cpp.
References Unit::_UnapplyAura(), ASSERT, AuraApplication::GetTarget(), m_applications, m_dropEvent, m_isRemoved, m_scriptRef, and BasicEvent::ScheduleAbort().
Referenced by DynObjAura::Remove(), DynamicObject::RemoveAura(), and Unit::RemoveOwnedAura().
|
virtual |
Reimplemented in UnitAura.
Definition at line 606 of file SpellAuras.cpp.
References _removedApplications, ABORT, ASSERT, AuraApplication::GetBase(), BaseEntity::GetGUID(), AuraApplication::GetRemoveMode(), Unit::GetSpellHistory(), GetSpellInfo(), SpellInfo::Id, m_applications, SpellHistory::SendCooldownEvent(), TC_LOG_ERROR, and ObjectGuid::ToString().
Referenced by Unit::_UnapplyAura(), and UnitAura::_UnapplyForTarget().
| void Aura::AddProcCooldown | ( | SpellProcEntry const * | procEntry, |
| TimePoint | now | ||
| ) |
Definition at line 1777 of file SpellAuras.cpp.
References SpellProcEntry::Cooldown, GetCaster(), GetSpellInfo(), WorldObject::GetSpellModOwner(), m_procCooldown, and ProcCooldown.
Referenced by Unit::GetProcAurasTriggeredOnEvent(), and PrepareProcToTrigger().
|
inline |
Definition at line 210 of file SpellAuras.h.
|
static |
Definition at line 320 of file SpellAuras.cpp.
References ABORT, ASSERT_NODEBUGINFO, SpellInfo::GetEffects(), BaseEntity::GetTypeId(), SPELL_EFFECT_PERSISTENT_AREA_AURA, TYPEID_DYNAMICOBJECT, TYPEID_PLAYER, and TYPEID_UNIT.
Referenced by Create(), Spell::DoSpellEffectHit(), Spell::PreprocessSpellHit(), TryCreate(), and TryRefreshStackOrCreate().
Definition at line 1237 of file SpellAuras.cpp.
References DispelResistance, GetCaster(), GetSpellInfo(), WorldObject::GetSpellModOwner(), and RoundToInterval().
Referenced by Spell::EffectDispelMechanic(), Spell::EffectStealBeneficialBuff(), and Unit::GetDispellableAuraList().
|
inline |
Definition at line 232 of file SpellAuras.h.
References CalcMaxCharges().
Referenced by Aura(), CalcMaxCharges(), ModCharges(), and ModStackAmount().
Definition at line 1004 of file SpellAuras.cpp.
References GetSpellInfo(), WorldObject::GetSpellModOwner(), m_spellInfo, ProcCharges, SpellInfo::ProcCharges, and sSpellMgr.
Referenced by AuraScript::CalcMaxCharges().
|
inline |
Definition at line 219 of file SpellAuras.h.
References CalcMaxDuration().
Referenced by Aura(), CalcMaxDuration(), AuraScript::CalcMaxDuration(), CalcMaxDuration(), AuraEffect::CalculateEstimatedfTotalPeriodicAmount(), spell_pri_empyreal_blaze_extend::HandleHit(), spell_pri_atonement_effect::HandleOnHitTarget(), Spell::PreprocessSpellHit(), and RefreshTimers().
|
static |
Definition at line 912 of file SpellAuras.cpp.
References Player::ApplySpellMod(), WorldObject::CalcSpellDuration(), Duration, SpellInfo::DurationEntry, SpellInfo::GetDuration(), WorldObject::GetSpellModOwner(), SpellInfo::IsEmpowerSpell(), SpellInfo::IsPassive(), and SPELL_EMPOWER_HOLD_TIME_AT_MAX.
Definition at line 907 of file SpellAuras.cpp.
References CalcMaxDuration(), and GetSpellInfo().
| uint32 Aura::CalcMaxStackAmount | ( | ) | const |
Definition at line 1083 of file SpellAuras.cpp.
References GetCaster(), WorldObject::GetSpellModOwner(), m_spellInfo, MaxAuraStacks, and SpellInfo::StackAmount.
Referenced by spell_item_hour_of_reaping::CheckProc(), spell_mage_radiant_spark::HandleProc(), and ModStackAmount().
| float Aura::CalcPPMProcChance | ( | Unit * | actor | ) | const |
Definition at line 2034 of file SpellAuras.cpp.
References SpellInfo::CalcProcPPM(), GetCastItemLevel(), m_lastProcAttemptTime, m_lastProcSuccessTime, m_spellInfo, GameTime::Now(), and RoundToInterval().
Referenced by CalcProcChance().
| float Aura::CalcProcChance | ( | SpellProcEntry const & | procEntry, |
| ProcEventInfo & | eventInfo | ||
| ) | const |
Definition at line 1981 of file SpellAuras.cpp.
References SpellProcEntry::AttributesMask, CalcPPMProcChance(), SpellProcEntry::Chance, ProcEventInfo::GetActor(), DamageInfo::GetAttackType(), GetCaster(), ProcEventInfo::GetDamageInfo(), Unit::GetLevel(), GetSpellInfo(), WorldObject::GetSpellModOwner(), PROC_ATTR_REDUCE_PROC_60, ProcChance, and SpellProcEntry::ProcsPerMinute.
Referenced by GetProcEffectMask().
| void Aura::CallScriptAfterDispel | ( | DispelInfo * | dispelInfo | ) |
Definition at line 2093 of file SpellAuras.cpp.
References AURA_SCRIPT_HOOK_AFTER_DISPEL, and m_loadedScripts.
Referenced by Unit::RemoveAurasDueToSpellByDispel().
| void Aura::CallScriptAfterEffectApplyHandlers | ( | AuraEffect const * | aurEff, |
| AuraApplication const * | aurApp, | ||
| AuraEffectHandleModes | mode | ||
| ) |
Definition at line 2154 of file SpellAuras.cpp.
References AURA_SCRIPT_HOOK_EFFECT_AFTER_APPLY, AuraEffect::GetEffIndex(), m_loadedScripts, and m_spellInfo.
Referenced by AuraEffect::HandleEffect().
| void Aura::CallScriptAfterEffectProcHandlers | ( | AuraEffect * | aurEff, |
| AuraApplication const * | aurApp, | ||
| ProcEventInfo & | eventInfo | ||
| ) |
Definition at line 2484 of file SpellAuras.cpp.
References AURA_SCRIPT_HOOK_EFFECT_AFTER_PROC, AuraEffect::GetEffIndex(), m_loadedScripts, and m_spellInfo.
Referenced by AuraEffect::HandleProc().
| void Aura::CallScriptAfterEffectRemoveHandlers | ( | AuraEffect const * | aurEff, |
| AuraApplication const * | aurApp, | ||
| AuraEffectHandleModes | mode | ||
| ) |
Definition at line 2167 of file SpellAuras.cpp.
References AURA_SCRIPT_HOOK_EFFECT_AFTER_REMOVE, AuraEffect::GetEffIndex(), m_loadedScripts, and m_spellInfo.
Referenced by AuraEffect::HandleEffect().
| void Aura::CallScriptAfterProcHandlers | ( | AuraApplication const * | aurApp, |
| ProcEventInfo & | eventInfo | ||
| ) |
Definition at line 2438 of file SpellAuras.cpp.
References AURA_SCRIPT_HOOK_AFTER_PROC, and m_loadedScripts.
Referenced by TriggerProcOnEvent().
| void Aura::CallScriptCalcDamageAndHealingHandlers | ( | AuraEffect const * | aurEff, |
| AuraApplication const * | aurApp, | ||
| Unit * | victim, | ||
| int32 & | damageOrHealing, | ||
| int32 & | flatMod, | ||
| float & | pctMod | ||
| ) |
Definition at line 2264 of file SpellAuras.cpp.
References AURA_SCRIPT_HOOK_EFFECT_CALC_DAMAGE_AND_HEALING, AuraEffect::GetEffIndex(), m_loadedScripts, and m_spellInfo.
Referenced by Unit::MeleeDamageBonusDone(), Unit::SpellAbsorbBonusDone(), Unit::SpellDamageBonusDone(), and Unit::SpellHealingBonusDone().
| bool Aura::CallScriptCheckAreaTargetHandlers | ( | Unit * | target | ) |
Definition at line 2067 of file SpellAuras.cpp.
References AURA_SCRIPT_HOOK_CHECK_AREA_TARGET, and m_loadedScripts.
Referenced by CheckAreaTarget().
| bool Aura::CallScriptCheckEffectProcHandlers | ( | AuraEffect const * | aurEff, |
| AuraApplication const * | aurApp, | ||
| ProcEventInfo & | eventInfo | ||
| ) |
Definition at line 2450 of file SpellAuras.cpp.
References AURA_SCRIPT_HOOK_CHECK_EFFECT_PROC, AuraEffect::GetEffIndex(), m_loadedScripts, and m_spellInfo.
Referenced by AuraEffect::CheckEffectProc().
| bool Aura::CallScriptCheckProcHandlers | ( | AuraApplication const * | aurApp, |
| ProcEventInfo & | eventInfo | ||
| ) |
Definition at line 2389 of file SpellAuras.cpp.
References AURA_SCRIPT_HOOK_CHECK_PROC, and m_loadedScripts.
Referenced by GetProcEffectMask().
| void Aura::CallScriptDispel | ( | DispelInfo * | dispelInfo | ) |
Definition at line 2081 of file SpellAuras.cpp.
References AURA_SCRIPT_HOOK_DISPEL, and m_loadedScripts.
Referenced by Unit::RemoveAurasDueToSpellByDispel().
| void Aura::CallScriptEffectAbsorbHandlers | ( | AuraEffect * | aurEff, |
| AuraApplication const * | aurApp, | ||
| DamageInfo & | dmgInfo, | ||
| uint32 & | absorbAmount, | ||
| bool & | defaultPrevented | ||
| ) |
Definition at line 2277 of file SpellAuras.cpp.
References AURA_SCRIPT_HOOK_EFFECT_ABSORB, AuraEffect::GetEffIndex(), m_loadedScripts, and m_spellInfo.
Referenced by Unit::CalcAbsorbResist(), and Unit::CalcHealAbsorb().
| void Aura::CallScriptEffectAbsorbHandlers | ( | AuraEffect * | aurEff, |
| AuraApplication const * | aurApp, | ||
| HealInfo & | healInfo, | ||
| uint32 & | absorbAmount, | ||
| bool & | defaultPrevented | ||
| ) |
Definition at line 2306 of file SpellAuras.cpp.
References AURA_SCRIPT_HOOK_EFFECT_ABSORB, AuraEffect::GetEffIndex(), m_loadedScripts, and m_spellInfo.
| void Aura::CallScriptEffectAfterAbsorbHandlers | ( | AuraEffect * | aurEff, |
| AuraApplication const * | aurApp, | ||
| DamageInfo & | dmgInfo, | ||
| uint32 & | absorbAmount | ||
| ) |
Definition at line 2293 of file SpellAuras.cpp.
References AURA_SCRIPT_HOOK_EFFECT_AFTER_ABSORB, AuraEffect::GetEffIndex(), m_loadedScripts, and m_spellInfo.
Referenced by Unit::CalcAbsorbResist(), and Unit::CalcHealAbsorb().
| void Aura::CallScriptEffectAfterAbsorbHandlers | ( | AuraEffect * | aurEff, |
| AuraApplication const * | aurApp, | ||
| HealInfo & | healInfo, | ||
| uint32 & | absorbAmount | ||
| ) |
Definition at line 2322 of file SpellAuras.cpp.
References AURA_SCRIPT_HOOK_EFFECT_AFTER_ABSORB, AuraEffect::GetEffIndex(), m_loadedScripts, and m_spellInfo.
| void Aura::CallScriptEffectAfterManaShieldHandlers | ( | AuraEffect * | aurEff, |
| AuraApplication const * | aurApp, | ||
| DamageInfo & | dmgInfo, | ||
| uint32 & | absorbAmount | ||
| ) |
Definition at line 2351 of file SpellAuras.cpp.
References AURA_SCRIPT_HOOK_EFFECT_AFTER_MANASHIELD, AuraEffect::GetEffIndex(), m_loadedScripts, and m_spellInfo.
Referenced by Unit::CalcAbsorbResist().
| bool Aura::CallScriptEffectApplyHandlers | ( | AuraEffect const * | aurEff, |
| AuraApplication const * | aurApp, | ||
| AuraEffectHandleModes | mode | ||
| ) |
Definition at line 2117 of file SpellAuras.cpp.
References AURA_SCRIPT_HOOK_EFFECT_APPLY, AuraEffect::GetEffIndex(), m_loadedScripts, and m_spellInfo.
Referenced by AuraEffect::HandleEffect().
| void Aura::CallScriptEffectCalcAmountHandlers | ( | AuraEffect const * | aurEff, |
| SpellEffectValue & | amount, | ||
| bool & | canBeRecalculated | ||
| ) |
Definition at line 2212 of file SpellAuras.cpp.
References AURA_SCRIPT_HOOK_EFFECT_CALC_AMOUNT, AuraEffect::GetEffIndex(), m_loadedScripts, and m_spellInfo.
Referenced by AuraEffect::CalculateAmount().
| void Aura::CallScriptEffectCalcCritChanceHandlers | ( | AuraEffect const * | aurEff, |
| AuraApplication const * | aurApp, | ||
| Unit const * | victim, | ||
| float & | critChance | ||
| ) |
Definition at line 2251 of file SpellAuras.cpp.
References AURA_SCRIPT_HOOK_EFFECT_CALC_CRIT_CHANCE, AuraEffect::GetEffIndex(), m_loadedScripts, and m_spellInfo.
Referenced by Unit::SpellCritChanceTaken().
| void Aura::CallScriptEffectCalcPeriodicHandlers | ( | AuraEffect const * | aurEff, |
| bool & | isPeriodic, | ||
| int32 & | amplitude | ||
| ) |
Definition at line 2225 of file SpellAuras.cpp.
References AURA_SCRIPT_HOOK_EFFECT_CALC_PERIODIC, AuraEffect::GetEffIndex(), m_loadedScripts, and m_spellInfo.
Referenced by AuraEffect::CalculatePeriodic().
| void Aura::CallScriptEffectCalcSpellModHandlers | ( | AuraEffect const * | aurEff, |
| SpellModifier *& | spellMod | ||
| ) |
Definition at line 2238 of file SpellAuras.cpp.
References AURA_SCRIPT_HOOK_EFFECT_CALC_SPELLMOD, AuraEffect::GetEffIndex(), m_loadedScripts, and m_spellInfo.
Referenced by AuraEffect::CalculateSpellMod().
| void Aura::CallScriptEffectManaShieldHandlers | ( | AuraEffect * | aurEff, |
| AuraApplication const * | aurApp, | ||
| DamageInfo & | dmgInfo, | ||
| uint32 & | absorbAmount, | ||
| bool & | defaultPrevented | ||
| ) |
Definition at line 2335 of file SpellAuras.cpp.
References AURA_SCRIPT_HOOK_EFFECT_MANASHIELD, AuraEffect::GetEffIndex(), m_loadedScripts, and m_spellInfo.
Referenced by Unit::CalcAbsorbResist().
| bool Aura::CallScriptEffectPeriodicHandlers | ( | AuraEffect const * | aurEff, |
| AuraApplication const * | aurApp | ||
| ) |
Definition at line 2180 of file SpellAuras.cpp.
References AURA_SCRIPT_HOOK_EFFECT_PERIODIC, AuraEffect::GetEffIndex(), m_loadedScripts, and m_spellInfo.
Referenced by AuraEffect::PeriodicTick().
| bool Aura::CallScriptEffectProcHandlers | ( | AuraEffect * | aurEff, |
| AuraApplication const * | aurApp, | ||
| ProcEventInfo & | eventInfo | ||
| ) |
Definition at line 2466 of file SpellAuras.cpp.
References AURA_SCRIPT_HOOK_EFFECT_PROC, AuraEffect::GetEffIndex(), m_loadedScripts, and m_spellInfo.
Referenced by AuraEffect::HandleProc().
| bool Aura::CallScriptEffectRemoveHandlers | ( | AuraEffect const * | aurEff, |
| AuraApplication const * | aurApp, | ||
| AuraEffectHandleModes | mode | ||
| ) |
Definition at line 2136 of file SpellAuras.cpp.
References AURA_SCRIPT_HOOK_EFFECT_REMOVE, AuraEffect::GetEffIndex(), m_loadedScripts, and m_spellInfo.
Referenced by AuraEffect::HandleEffect().
| void Aura::CallScriptEffectSplitHandlers | ( | AuraEffect * | aurEff, |
| AuraApplication const * | aurApp, | ||
| DamageInfo & | dmgInfo, | ||
| uint32 & | splitAmount | ||
| ) |
Definition at line 2364 of file SpellAuras.cpp.
References AURA_SCRIPT_HOOK_EFFECT_SPLIT, AuraEffect::GetEffIndex(), m_loadedScripts, and m_spellInfo.
| void Aura::CallScriptEffectUpdatePeriodicHandlers | ( | AuraEffect * | aurEff | ) |
Definition at line 2199 of file SpellAuras.cpp.
References AURA_SCRIPT_HOOK_EFFECT_UPDATE_PERIODIC, AuraEffect::GetEffIndex(), m_loadedScripts, and m_spellInfo.
Referenced by AuraEffect::Update().
| void Aura::CallScriptEnterLeaveCombatHandlers | ( | AuraApplication const * | aurApp, |
| bool | isNowInCombat | ||
| ) |
Definition at line 2377 of file SpellAuras.cpp.
References AURA_SCRIPT_HOOK_ENTER_LEAVE_COMBAT, and m_loadedScripts.
Referenced by Unit::AtEnterCombat(), and Unit::AtExitCombat().
| void Aura::CallScriptOnHeartbeat | ( | ) |
Definition at line 2105 of file SpellAuras.cpp.
References AURA_SCRIPT_HOOK_ON_HEARTBEAT, and m_loadedScripts.
Referenced by UnitAura::Heartbeat().
| bool Aura::CallScriptPrepareProcHandlers | ( | AuraApplication const * | aurApp, |
| ProcEventInfo & | eventInfo | ||
| ) |
Definition at line 2404 of file SpellAuras.cpp.
References AURA_SCRIPT_HOOK_PREPARE_PROC, and m_loadedScripts.
Referenced by PrepareProcToTrigger().
| bool Aura::CallScriptProcHandlers | ( | AuraApplication const * | aurApp, |
| ProcEventInfo & | eventInfo | ||
| ) |
Definition at line 2422 of file SpellAuras.cpp.
References AURA_SCRIPT_HOOK_PROC, and m_loadedScripts.
Referenced by TriggerProcOnEvent().
| bool Aura::CanBeAppliedOn | ( | Unit * | target | ) |
Definition at line 1607 of file SpellAuras.cpp.
References CheckAreaTarget(), GetCasterGUID(), BaseEntity::GetGUID(), GetOwner(), GetSpellInfo(), Unit::HasAuraTypeWithMiscvalue(), Unit::IsDuringRemoveFromWorld(), BaseEntity::IsInWorld(), SpellInfo::IsSingleTarget(), SpellInfo::Labels, and SPELL_AURA_SUPPRESS_ITEM_PASSIVE_EFFECT_BY_SPELL_LABEL.
Referenced by UpdateTargetMap().
| bool Aura::CanBeSaved | ( | ) | const |
Definition at line 1168 of file SpellAuras.cpp.
References GetCasterGUID(), GetCastItemGUID(), GetCharges(), SpellInfo::GetEffects(), GetOwner(), GetSpellInfo(), SpellInfo::HasAttribute(), ObjectGuid::IsEmpty(), IsPassive(), IsPermanent(), IsSingleTarget(), SpellInfo::IsSingleTarget(), IsUsingCharges(), and SPELL_ATTR0_CU_AURA_CANNOT_BE_SAVED.
| bool Aura::CanPeriodicTickCrit | ( | ) | const |
Definition at line 524 of file SpellAuras.cpp.
References GetSpellInfo(), SPELL_ATTR2_CANT_CRIT, and SPELL_ATTR8_PERIODIC_CAN_CRIT.
| bool Aura::CanStackWith | ( | Aura const * | existingAura | ) | const |
Definition at line 1633 of file SpellAuras.cpp.
References DYNOBJ_AURA_TYPE, Vehicle::GetAvailableSeatCount(), GetCasterGUID(), GetCastItemGUID(), SpellInfo::GetEffects(), GetId(), GetOwner(), GetSpellInfo(), GetType(), Unit::GetVehicleKit(), SpellInfo::HasAttribute(), HasEffectType(), SpellInfo::Id, IsArea(), SpellInfo::IsAuraExclusiveBySpecificPerCasterWith(), SpellInfo::IsAuraExclusiveBySpecificWith(), SpellInfo::IsChanneled(), SpellInfo::IsDifferentRankOf(), ObjectGuid::IsEmpty(), SpellInfo::IsMultiSlotAura(), IsPassive(), SpellInfo::IsRankOf(), m_castItemGuid, m_spellInfo, SPELL_ATTR0_CU_ENCHANT_PROC, SPELL_ATTR3_DOT_STACKING_RULE, SPELL_AURA_CONTROL_VEHICLE, SPELL_AURA_OBS_MOD_HEALTH, SPELL_AURA_OBS_MOD_POWER, SPELL_AURA_PERIODIC_DAMAGE, SPELL_AURA_PERIODIC_DAMAGE_PERCENT, SPELL_AURA_PERIODIC_DUMMY, SPELL_AURA_PERIODIC_ENERGIZE, SPELL_AURA_PERIODIC_HEAL, SPELL_AURA_PERIODIC_LEECH, SPELL_AURA_PERIODIC_MANA_LEECH, SPELL_AURA_PERIODIC_TRIGGER_SPELL, SPELL_AURA_PERIODIC_TRIGGER_SPELL_WITH_VALUE, SPELL_AURA_PERIODIC_WEAPON_PERCENT_DAMAGE, SPELL_AURA_POWER_BURN, SPELL_AURA_SHOW_CONFIRMATION_PROMPT, SPELL_AURA_SHOW_CONFIRMATION_PROMPT_WITH_DIFFICULTY, SPELL_GROUP_STACK_RULE_DEFAULT, SPELL_GROUP_STACK_RULE_EXCLUSIVE, SPELL_GROUP_STACK_RULE_EXCLUSIVE_FROM_SAME_CASTER, SPELL_GROUP_STACK_RULE_EXCLUSIVE_HIGHEST, SPELL_GROUP_STACK_RULE_EXCLUSIVE_SAME_EFFECT, SpellInfo::SpellFamilyName, sSpellMgr, and Object::ToUnit().
Referenced by Unit::_RemoveNoStackAurasDueToAura(), and UpdateTargetMap().
| bool Aura::CheckAreaTarget | ( | Unit * | target | ) |
Definition at line 1628 of file SpellAuras.cpp.
References CallScriptCheckAreaTargetHandlers().
Referenced by CanBeAppliedOn().
| void Aura::ConsumeProcCharges | ( | SpellProcEntry const * | procEntry | ) |
Definition at line 1820 of file SpellAuras.cpp.
References SpellProcEntry::AttributesMask, GetCharges(), IsUsingCharges(), ModStackAmount(), PROC_ATTR_USE_STACKS_FOR_CHARGES, and Remove.
Referenced by TriggerProcOnEvent().
|
static |
Definition at line 403 of file SpellAuras.cpp.
References AuraCreateInfo::_auraEffectMask, AuraCreateInfo::_owner, AuraCreateInfo::_spellInfo, AuraCreateInfo::_targetEffectMask, ABORT, UnitAura::AddStaticApplication(), ASSERT_NODEBUGINFO, BuildEffectMaskForOwner(), AuraCreateInfo::Caster, AuraCreateInfo::CasterGUID, BaseEntity::GetGUID(), BaseEntity::GetTypeId(), ObjectAccessor::GetUnit(), ObjectGuid::IsEmpty(), IsRemoved(), SpellInfo::IsSingleTarget(), ObjectGuid::IsUnit(), Object::ToUnit(), ToUnitAura(), TYPEID_DYNAMICOBJECT, TYPEID_PLAYER, and TYPEID_UNIT.
Referenced by TryCreate(), and TryRefreshStackOrCreate().
|
inline |
Definition at line 234 of file SpellAuras.h.
Referenced by AuraScript::DropCharge().
| void Aura::DropChargeDelayed | ( | uint32 | delay, |
| AuraRemoveMode | removeMode = AURA_REMOVE_BY_DEFAULT |
||
| ) |
Definition at line 1046 of file SpellAuras.cpp.
References EventProcessor::AddEventAtOffset(), m_dropEvent, WorldObject::m_Events, and m_owner.
Referenced by spell_sha_delayed_stormstrike_mod_charge_drop_proc::DropAura(), spell_dh_chaos_theory_drop_charge::Prepare(), and spell_pri_rhapsody_proc::RemoveAura().
|
static |
Definition at line 1299 of file SpellAuras.cpp.
References SPELL_AURA_CHARGE_RECOVERY_MOD, SPELL_AURA_CHARGE_RECOVERY_MULTIPLIER, SPELL_AURA_MOD_MAX_CHARGES, SPELL_AURA_MOD_SPELL_CATEGORY_COOLDOWN, SPELL_AURA_OVERRIDE_ACTIONBAR_SPELLS, and SPELL_AURA_OVERRIDE_ACTIONBAR_SPELLS_TRIGGERED.
Referenced by AuraApplication::_InitFlags(), AuraApplication::AddEffectToApplyEffectMask(), and AuraEffect::ChangeAmount().
|
pure virtual |
Implemented in UnitAura, and DynObjAura.
Referenced by UpdateTargetMap().
Fills a helper structure containing aura primary key for character_aura, character_aura_effect, pet_aura, pet_aura_effect tables.
| [out] | recalculateMask | Mask of effects that can be recalculated to store in database - not part of aura key. |
Definition at line 1252 of file SpellAuras.cpp.
References AuraKey::Caster, AuraKey::EffectMask, GetCasterGUID(), GetCastItemGUID(), GetId(), AuraKey::Item, m_effects, and AuraKey::SpellId.
Referenced by Pet::_SaveAuras(), and Player::_SaveAuras().
|
inline |
Definition at line 286 of file SpellAuras.h.
Referenced by AuraEffect::GetApplicationList(), AuraEffect::GetTargetList(), and Unit::RemoveAreaAurasDueToLeaveWorld().
| AuraApplication * Aura::GetApplicationOfTarget | ( | ObjectGuid | guid | ) |
Definition at line 1358 of file SpellAuras.cpp.
References m_applications, and Trinity::Containers::MapGetValuePtr().
| AuraApplication const * Aura::GetApplicationOfTarget | ( | ObjectGuid | guid | ) | const |
Definition at line 1353 of file SpellAuras.cpp.
References m_applications, and Trinity::Containers::MapGetValuePtr().
Referenced by Unit::_ApplyAuraEffect(), _ApplyEffectForTargets(), Unit::_UnapplyAura(), Unit::CalcAbsorbResist(), Unit::CalcHealAbsorb(), Unit::DealDamage(), Spell::EffectApplyAura(), Spell::EffectDispelMechanic(), Spell::EffectStealBeneficialBuff(), VehicleJoinEvent::Execute(), Unit::GetDispellableAuraList(), GetUnitConditionVariable(), AuraEffect::HandleEffect(), Unit::IsHighestExclusiveAuraEffect(), Unit::IsImmunedToAuraPeriodicTick(), Unit::MeleeDamageBonusDone(), Unit::RemoveAura(), Unit::RemoveAura(), Unit::RemoveAurasByType(), Unit::RemoveAurasByType(), Unit::RestoreDisplayId(), Unit::SpellAbsorbBonusDone(), Unit::SpellCritChanceTaken(), Unit::SpellDamageBonusDone(), Unit::SpellHealingBonusDone(), and UpdateTargetMap().
| void Aura::GetApplicationVector | ( | std::vector< AuraApplication * > & | applications | ) | const |
Definition at line 1342 of file SpellAuras.cpp.
References m_applications.
Referenced by SetStackAmount().
|
inline |
Definition at line 216 of file SpellAuras.h.
Referenced by Player::DuelComplete(), and AuraScript::GetApplyTime().
|
inline |
Definition at line 374 of file SpellAuras.h.
Referenced by AuraApplication::_InitFlags(), AuraApplication::BuildUpdatePacket(), TriggerProcOnEvent(), and AuraApplication::UpdateApplyEffectMask().
|
inline |
Definition at line 362 of file SpellAuras.h.
References Trinity::Containers::MakeIteratorPair().
Referenced by Unit::_ApplyAura(), Pet::_SaveAuras(), Player::_SaveAuras(), Unit::_UnapplyAura(), Player::ApplyArtifactPowerRank(), AuraEffect::ApplySpellMod(), AuraApplication::BuildUpdatePacket(), Spell::DoSpellEffectHit(), GetEffectMask(), GetProcEffectMask(), HandleAllEffects(), HasEffectType(), Unit::IsHighestExclusiveAura(), RecalculateAmountOfEffects(), RefreshDuration(), RefreshTimers(), Unit::RemoveAura(), Unit::RemoveAurasDueToSpellBySteal(), SetLoadedState(), SetStackAmount(), and UpdateOwner().
|
inline |
Definition at line 368 of file SpellAuras.h.
References Trinity::Containers::MakeIteratorPair().
|
inline |
Definition at line 184 of file SpellAuras.h.
Referenced by Pet::_SaveAuras(), Player::_SaveAuras(), AuraScript::GetCastDifficulty(), AuraEffect::HandleAuraDummy(), and Unit::RemoveAurasDueToSpellBySteal().
| Unit * Aura::GetCaster | ( | ) | const |
Definition at line 557 of file SpellAuras.cpp.
References GetCasterGUID(), GetOwner(), ObjectAccessor::GetUnit(), and GetUnitOwner().
Referenced by Unit::_ApplyAura(), Unit::_CreateAuraApplication(), Unit::_UnapplyAura(), AddProcCooldown(), CalcDispelChance(), CalcMaxStackAmount(), CalcProcChance(), spell_redridge_control_ettin::CheckCast(), AuraScript::GetCaster(), AuraScript::GetGObjCaster(), GetWorldObjectCaster(), spell_rog_rupture::OnEffectRemoved(), RecalculateAmountOfEffects(), RefreshDuration(), RefreshTimers(), Unit::RemoveAurasDueToSpellBySteal(), Unit::RemoveNotOwnSingleTargetAuras(), SetDuration(), SetLoadedState(), SetStackAmount(), UnregisterSingleTarget(), and UpdateOwner().
|
inline |
Definition at line 187 of file SpellAuras.h.
Referenced by Unit::_AddAura(), AuraApplication::_InitFlags(), AuraEffect::ApplySpellMod(), AuraApplication::BuildUpdatePacket(), Unit::CalcAbsorbResist(), Unit::CalcHealAbsorb(), CanBeAppliedOn(), CanBeSaved(), CanStackWith(), Unit::DealDamage(), Unit::DelayOwnedAuras(), Player::DuelComplete(), Spell::EffectDispelMechanic(), GenerateKey(), Unit::GetAuraApplication(), GetCaster(), AuraScript::GetCasterGUID(), GetDebugInfo(), GetProcEffectMask(), GetWorldObjectCaster(), HandleAuraSpecificMods(), IsRemovedOnShapeLost(), list_commandscript::ListAurasCommand(), Unit::RemoveAllGroupBuffsFromCaster(), Unit::RemoveAura(), Unit::RemoveAuraFromStack(), Unit::RemoveAurasByType(), Unit::RemoveAurasDueToSpell(), Unit::RemoveAurasDueToSpellByDispel(), Unit::RemoveAurasDueToSpellBySteal(), Unit::RemoveAurasWithFamily(), Player::RemoveItemDependentAurasAndCasts(), and Unit::RemoveNotOwnSingleTargetAuras().
|
inline |
Definition at line 244 of file SpellAuras.h.
Referenced by AuraApplication::BuildUpdatePacket().
|
inline |
Definition at line 186 of file SpellAuras.h.
Referenced by AuraApplication::BuildUpdatePacket(), spell_item_conflict_rank3::CheckProc(), spell_item_infurious_crafted_gear_mettle::CheckProc(), spell_dru_elunes_favored::HandleApply(), AuraEffect::HandleAuraDummy(), HandleAuraSpecificMods(), spell_bg_seething_shore_rocket_parachute_trigger::HandlePeriodic(), and Unit::RemoveAurasDueToSpellBySteal().
|
inline |
Definition at line 188 of file SpellAuras.h.
Referenced by AuraApplication::BuildUpdatePacket(), CanBeSaved(), CanStackWith(), WorldObject::CastSpell(), Spell::CheckCast(), GenerateKey(), Unit::GetAuraApplication(), CriteriaHandler::ModifierSatisfied(), and GameObject::Use().
|
inline |
Definition at line 189 of file SpellAuras.h.
Referenced by Player::_SaveAuras().
|
inline |
Definition at line 190 of file SpellAuras.h.
Referenced by Player::_SaveAuras(), AuraApplication::BuildUpdatePacket(), CalcPPMProcChance(), and Spell::prepare().
|
inline |
Definition at line 229 of file SpellAuras.h.
Referenced by Pet::_SaveAuras(), Player::_SaveAuras(), Player::ApplyModToSpell(), AuraApplication::BuildUpdatePacket(), CanBeSaved(), ConsumeProcCharges(), Spell::EffectStealBeneficialBuff(), AuraScript::GetCharges(), Unit::GetDispellableAuraList(), GetProcEffectMask(), Player::IsAffectedBySpellmod(), list_commandscript::ListAurasCommand(), and Unit::RemoveAurasDueToSpellBySteal().
|
virtual |
Definition at line 2497 of file SpellAuras.cpp.
References GetCasterGUID(), WorldObject::GetDebugInfo(), GetId(), GetOwner(), GetSpellInfo(), SpellInfo::SpellName, sWorld, and ObjectGuid::ToString().
Referenced by Unit::_CreateAuraApplication(), and AuraApplication::GetDebugInfo().
|
inline |
Definition at line 222 of file SpellAuras.h.
Referenced by Battleground::_ProcessJoin(), Pet::_SaveAuras(), Player::_SaveAuras(), AuraApplication::BuildUpdatePacket(), AuraEffect::CalculatePeriodic(), AuraEffect::CheckEffectProc(), Unit::DelayOwnedAuras(), Spell::DoSpellEffectHit(), Spell::DoTriggersOnSpellHit(), spell_pri_purge_the_wicked_dummy::FilterTargets(), DynamicObject::GetDuration(), AuraScript::GetDuration(), npc_sparring_partner_enhanced_combat_training_priest::HandleClassEvent(), npc_sparring_partner_enhanced_combat_training_warlock::HandleClassEvent(), npc_sparring_partner_enhanced_combat_training_druid::HandleClassEvent(), spell_dru_twin_moonfire::HandleEffectHit(), spell_pri_empyreal_blaze_extend::HandleHit(), spell_pri_expiation::HandleHitTarget(), spell_dk_t20_2p_rune_empowered::HandleProc(), spell_pri_divine_procession::HandleProc(), spell_sha_t10_elemental_4p_bonus::HandleProc(), spell_pri_insidious_ire::HandleProc(), spell_dh_shattered_destiny::HandleProc(), spell_dk_glyph_of_scourge_strike_script::HandleScriptEffect(), list_commandscript::ListAurasCommand(), spell_rog_rupture::OnEffectRemoved(), spell_dru_germination::PickRejuvenationVariant(), Unit::RemoveAurasDueToSpellBySteal(), npc_tournament_training_dummy::UpdateAI(), and Player::UpdateMirrorTimers().
|
inline |
Definition at line 197 of file SpellAuras.h.
References ASSERT, and DYNOBJ_AURA_TYPE.
Referenced by DynObjAura::DynObjAura(), Spell::EffectPersistentAA(), DynObjAura::FillTargetMap(), and AuraScript::GetDynobjOwner().
| AuraEffect * Aura::GetEffect | ( | uint32 | index | ) | const |
Definition at line 573 of file SpellAuras.cpp.
References m_effects.
Referenced by AuraApplication::_HandleEffect(), AuraEffect::ApplySpellMod(), spell_gen_arena_drink::CalcAmount(), spell_dh_consume_soul_vengeance_lesser::CalcHealingFromDamageTaken(), spell_gen_arena_drink::CalcPeriodic(), spell_warr_overpowering_finish::CalculateDamage(), spell_monk_stagger_debuff_aura::CastOrChangeTickDamage(), spell_dh_chaos_theory::ChaosTheory(), Unit::GetAuraEffect(), AuraScript::GetEffect(), spell_dru_pulverize_thrash::HandleAfterHit(), HandleAuraSpecificMods(), spell_warr_rumbling_earth::HandleCooldownReduction(), spell_warr_meat_cleaver_damage_bonus::HandleDamageBonus(), spell_warl_deaths_embrace_impl::HandleDamageOrHealingCalculation(), spell_reliquary_of_souls_aura_of_anger::HandleEffectPeriodicUpdate(), spell_dh_darkglare_boon::HandleEffectRemove(), spell_pri_expiation::HandleHitTarget(), spell_sha_stormflurry::HandleProc(), spell_baleroc_vital_flame::OnApply(), spell_monk_stagger_debuff_aura::OnReapply(), spell_sha_molten_thunder_sundering::RollReset(), Unit::SpellCritChanceTaken(), spell_sha_unrelenting_storms::Trigger(), TriggerProcOnEvent(), spell_gen_arena_drink::UpdatePeriodic(), and spell_gen_chains_of_ice::UpdatePeriodic().
| uint32 Aura::GetEffectMask | ( | ) | const |
Definition at line 1334 of file SpellAuras.cpp.
References GetAuraEffects().
Referenced by Spell::DoSpellEffectHit(), Unit::GetAuraApplication(), Unit::IsHighestExclusiveAura(), Unit::IsHighestExclusiveAuraEffect(), Unit::RemoveAura(), and Unit::RemoveAurasDueToSpell().
|
inline |
Definition at line 379 of file SpellAuras.h.
|
inline |
Definition at line 183 of file SpellAuras.h.
Referenced by Unit::_AddAura(), Unit::_ApplyAura(), Unit::_UnapplyAura(), Unit::_UnapplyAura(), AuraApplication::BuildUpdatePacket(), CanStackWith(), spell_thorim_blizzard_effect::spell_thorim_blizzard_effect_AuraScript::CheckAreaTarget(), Spell::EffectDispelMechanic(), GenerateKey(), GetDebugInfo(), AuraScript::GetId(), GetProcEffectMask(), HandleAuraSpecificMods(), spell_rog_leeching_poison::HandleOnRemove(), Pet::IsPetAura(), list_commandscript::ListAurasCommand(), Unit::RemoveAura(), Unit::RemoveAurasDueToSpellBySteal(), Unit::RemoveAurasWithInterruptFlags(), Unit::RemoveAurasWithMechanic(), Unit::RemoveOwnedAura(), Player::UpdateMirrorTimers(), UpdateOwner(), and UpdateTargetMap().
|
inline |
Definition at line 217 of file SpellAuras.h.
Referenced by Pet::_SaveAuras(), Player::_SaveAuras(), AuraApplication::BuildUpdatePacket(), AuraEffect::CalculatePeriodic(), AuraEffect::CheckEffectProc(), Spell::DoSpellEffectHit(), AuraScript::GetMaxDuration(), AuraEffect::GetTotalTicks(), npc_sparring_partner_enhanced_combat_training_priest::HandleClassEvent(), npc_sparring_partner_enhanced_combat_training_warlock::HandleClassEvent(), npc_sparring_partner_enhanced_combat_training_druid::HandleClassEvent(), spell_sha_t10_elemental_4p_bonus::HandleProc(), spell_dk_glyph_of_scourge_strike_script::HandleScriptEffect(), list_commandscript::ListAurasCommand(), spell_rog_rupture::OnEffectRemoved(), RefreshDuration(), Unit::RemoveAurasDueToSpellBySteal(), and Player::UpdateMirrorTimers().
|
inline |
Definition at line 195 of file SpellAuras.h.
Referenced by _ApplyEffectForTargets(), AuraEffect::CalculateAmount(), CanBeAppliedOn(), CanBeSaved(), CanStackWith(), spell_thorim_blizzard_effect::spell_thorim_blizzard_effect_AuraScript::CheckAreaTarget(), GetCaster(), GetDebugInfo(), AuraScript::GetOwner(), GetWorldObjectCaster(), Unit::IsHighestExclusiveAuraEffect(), Unit::RemoveAura(), Unit::RemoveOwnedAura(), Update(), and UpdateTargetMap().
| uint32 Aura::GetProcEffectMask | ( | AuraApplication * | aurApp, |
| ProcEventInfo & | eventInfo, | ||
| TimePoint | now | ||
| ) | const |
Definition at line 1834 of file SpellAuras.cpp.
References SpellProcEntry::AttributesMask, AUTO_ATTACK_PROC_FLAG_MASK, CalcProcChance(), CallScriptCheckProcHandlers(), SpellMgr::CanSpellTriggerProcOnEvent(), CONDITION_SOURCE_TYPE_SPELL_PROC, SpellProcEntry::DisableEffectsMask, EQUIPMENT_SLOT_MAINHAND, EQUIPMENT_SLOT_OFFHAND, SpellInfo::EquippedItemClass, ProcEventInfo::GetActionTarget(), ProcEventInfo::GetActor(), GetAuraEffects(), GetCasterGUID(), GetCharges(), ProcEventInfo::GetDamageInfo(), AuraApplication::GetEffectMask(), BaseEntity::GetGUID(), GetId(), ProcEventInfo::GetProcSpell(), ProcEventInfo::GetSpellInfo(), GetSpellInfo(), AuraApplication::GetTarget(), BaseEntity::GetTypeId(), ProcEventInfo::GetTypeMask(), Player::GetUseableItemByPos(), SpellInfo::HasAttribute(), SpellInfo::HasAura(), INVENTORY_SLOT_BAG_0, Item::IsBroken(), Item::IsFitToSpellRequirements(), Unit::IsInFeralForm(), WorldObject::IsOutdoors(), IsPassive(), IsProcOnCooldown(), Unit::IsStandState(), IsUsingCharges(), ITEM_CLASS_ARMOR, ITEM_CLASS_WEAPON, m_spellInfo, OFF_ATTACK, PROC_ATTR_CANT_PROC_FROM_ITEM_CAST, PROC_ATTR_REQ_SPELLMOD, PROC_ATTR_TRIGGERED_CAN_PROC, PROC_ATTR_USE_STACKS_FOR_CHARGES, roll_chance(), sConditionMgr, SetLastProcAttemptTime(), SPELL_ATTR0_CU_DONT_BREAK_STEALTH, SPELL_ATTR12_CAN_PROC_FROM_SUPPRESSED_CASTER_PROCS, SPELL_ATTR12_ENABLE_PROCS_FROM_SUPPRESSED_CASTER_PROCS, SPELL_ATTR12_ONLY_PROC_FROM_CLASS_ABILITIES, SPELL_ATTR13_ALLOW_CLASS_ABILITY_PROCS, SPELL_ATTR3_CAN_PROC_FROM_PROCS, SPELL_ATTR3_NO_PROC_EQUIP_REQUIREMENT, SPELL_ATTR3_NOT_A_PROC, SPELL_ATTR3_ONLY_PROC_ON_CASTER, SPELL_ATTR3_ONLY_PROC_OUTDOORS, SPELL_ATTR3_SUPPRESS_CASTER_PROCS, SPELL_ATTR3_SUPPRESS_TARGET_PROCS, SPELL_ATTR4_ALLOW_PROC_WHILE_SITTING, SPELL_ATTR4_SUPPRESS_WEAPON_PROCS, SPELL_ATTR6_AURA_IS_WEAPON_PROC, SPELL_ATTR7_CAN_PROC_FROM_SUPPRESSED_TARGET_PROCS, SPELL_AURA_MOD_STEALTH, sSpellMgr, TAKEN_HIT_PROC_FLAG_MASK, Object::ToPlayer(), and TYPEID_PLAYER.
Referenced by Unit::GetProcAurasTriggeredOnEvent().
Definition at line 355 of file SpellAuras.h.
References Script.
Referenced by spell_pri_lights_wrath::CalculateDamageBonus(), spell_dh_blade_dance::DecideFirstTarget(), HealingRain::GetHealingRainPosition(), spell_pri_prayer_of_mending::HandleEffectDummy(), spell_torghast_uncontrolled_darkness_proc::HandleProc(), spell_pri_divine_procession::HandleProc(), spell_pri_lights_wrath::OnPrecast(), spell_sha_molten_thunder_sundering::RollReset(), and spell_sha_thorims_invocation_trigger::TriggerLightningSpell().
|
private |
Definition at line 503 of file SpellAuras.cpp.
References m_loadedScripts.
|
inline |
Definition at line 182 of file SpellAuras.h.
Referenced by Unit::_AddAura(), Unit::_ApplyAura(), Unit::_CreateAuraApplication(), _InitEffects(), AuraApplication::_InitFlags(), Battleground::_ProcessJoin(), Unit::_RemoveNoStackAurasDueToAura(), Unit::_UnapplyAura(), _UnapplyForTarget(), AddProcCooldown(), UnitAura::AddStaticApplication(), SpellInfo::ApplyAllSpellImmunitiesTo(), AuraEffect::ApplySpellMod(), AuraApplication::BuildUpdatePacket(), CalcDispelChance(), CalcMaxCharges(), CalcMaxDuration(), CalcProcChance(), CanBeAppliedOn(), CanBeSaved(), PlayerAI::CancelAllShapeshifts(), CanPeriodicTickCrit(), CanStackWith(), Player::CanUseBattlegroundObject(), Spell::EffectDispelMechanic(), Spell::EffectStealBeneficialBuff(), UnitAura::FillTargetMap(), DynObjAura::FillTargetMap(), GetDebugInfo(), Unit::GetDispellableAuraList(), AuraScript::GetEffectInfo(), Unit::GetProcAurasTriggeredOnEvent(), GetProcEffectMask(), AuraScript::GetSpellInfo(), GetUnitConditionVariable(), AuraEffect::HandleAuraDummy(), HandleAuraSpecificMods(), UnitAura::HandlePeriodicFoodSpellVisualKit(), spell_torghast_uncontrolled_darkness_proc::HandleProc(), spell_gen_clear_debuffs::HandleScript(), HasMoreThanOneEffectForType(), IsArea(), IsDeathPersistent(), Unit::IsHighestExclusiveAura(), IsPassive(), IsSingleTargetWith(), list_commandscript::ListAurasCommand(), CriteriaHandler::ModifierSatisfied(), SmartAI::OnAuraApplied(), SmartAI::OnAuraRemoved(), PrepareProcToTrigger(), Unit::RemoveAllAurasExceptType(), Unit::RemoveAllAurasExceptType(), Unit::RemoveAllAurasRequiringDeadTarget(), Unit::RemoveAllGroupBuffsFromCaster(), Unit::RemoveArenaAuras(), Unit::RemoveAurasByShapeShift(), Unit::RemoveAurasDueToSpellByDispel(), Unit::RemoveAurasDueToSpellBySteal(), Unit::RemoveAurasWithFamily(), Unit::RemoveAurasWithInterruptFlags(), Unit::RemoveAurasWithMechanic(), Player::RemoveItemDependentAurasAndCasts(), SetDuration(), TriggerProcOnEvent(), Update(), and UpdateTargetMap().
|
inline |
Definition at line 191 of file SpellAuras.h.
Referenced by AuraApplication::BuildUpdatePacket().
|
inline |
Definition at line 238 of file SpellAuras.h.
Referenced by Pet::_SaveAuras(), Player::_SaveAuras(), AuraApplication::BuildUpdatePacket(), AuraEffect::CalculateAmount(), spell_sha_swirling_maelstrom::CheckHailstormProc(), spell_sha_maelstrom_weapon_base::ConsumeMaelstromWeapon(), Spell::EffectStealBeneficialBuff(), Unit::GetDispellableAuraList(), AuraScript::GetStackAmount(), spell_dru_pulverize_thrash::HandleAfterHit(), AuraEffect::HandleAuraLinked(), HandleAuraSpecificMods(), spell_anduin_wrynn_hopebreaker_damage::HandleDamage(), spell_remnant_of_a_fallen_king_remorseless_winter_damage::HandleDamage(), spell_borean_tundra_nerubar_web_random_unit_not_on_quest_dummy::HandleDummy(), spell_borean_tundra_nerubar_web_random_unit_on_quest_dummy::HandleDummy(), spell_sindragosa_frost_breath::HandleInfusion(), spell_pri_answered_prayers::HandleOnProc(), AuraEffect::HandlePeriodicDamageAurasTick(), AuraEffect::HandlePeriodicHealAurasTick(), AuraEffect::HandlePeriodicHealthLeechAuraTick(), spell_item_anger_capacitor< StackAmount >::spell_item_anger_capacitor_AuraScript< Stacks >::HandleProc(), spell_item_trinket_stack::spell_item_trinket_stack_AuraScript::HandleProc(), spell_mage_radiant_spark::HandleProc(), spell_pilgrims_bounty_well_fed::HandleScript(), spell_festergut_gastric_bloat::HandleScript(), spell_gen_bonked::HandleScript(), spell_gen_landmine_knockback_achievement::HandleScript(), npc_underbog_mushroom::InitializeAI(), npc_slad_ran_constrictor::JustEngagedWith(), list_commandscript::ListAurasCommand(), CriteriaHandler::ModifierSatisfied(), ModStackAmount(), spell_halion_marks::OnRemove(), spell_gen_defend::RefreshVisualShields(), boss_trollgore::UpdateAI(), and npc_tournament_training_dummy::UpdateAI().
| AuraObjectType Aura::GetType | ( | ) | const |
Definition at line 581 of file SpellAuras.cpp.
References DYNOBJ_AURA_TYPE, BaseEntity::GetTypeId(), m_owner, TYPEID_DYNAMICOBJECT, and UNIT_AURA_TYPE.
Referenced by AuraApplication::BuildUpdatePacket(), CanStackWith(), AuraScript::GetType(), Unit::RemoveAuraFromStack(), and UpdateTargetMap().
|
inline |
Definition at line 196 of file SpellAuras.h.
References ASSERT, and UNIT_AURA_TYPE.
Referenced by Player::ActivateTalentGroup(), UnitAura::FillTargetMap(), GetCaster(), HealingRain::GetHealingRainPosition(), AuraScript::GetUnitOwner(), UnitAura::HandlePeriodicFoodSpellVisualKit(), UnitAura::Remove(), Unit::RemoveNotOwnSingleTargetAuras(), and UnitAura::UnitAura().
|
inline |
Definition at line 378 of file SpellAuras.h.
| WorldObject * Aura::GetWorldObjectCaster | ( | ) | const |
Definition at line 565 of file SpellAuras.cpp.
References GetCaster(), GetCasterGUID(), GetOwner(), and ObjectAccessor::GetWorldObject().
| void Aura::HandleAllEffects | ( | AuraApplication * | aurApp, |
| uint8 | mode, | ||
| bool | apply | ||
| ) |
Definition at line 1326 of file SpellAuras.cpp.
References ASSERT, GetAuraEffects(), and IsRemoved().
| void Aura::HandleAuraSpecificMods | ( | AuraApplication const * | aurApp, |
| Unit * | caster, | ||
| bool | apply, | ||
| bool | onReapply | ||
| ) |
Definition at line 1375 of file SpellAuras.cpp.
References Unit::AddAura(), SpellHistory::AddCooldown(), CastSpellExtraArgs::AddSpellMod(), Unit::ApplySpellImmune(), AURA_REMOVE_BY_DEATH, AURA_REMOVE_BY_ENEMY_SPELL, AURA_REMOVE_BY_EXPIRE, CalculatePct(), WorldObject::CastSpell(), EFFECT_0, Unit::GetAura(), Unit::GetAuraOfRankedSpell(), GetCasterGUID(), GetCastId(), GetEffect(), BaseEntity::GetGUID(), GetId(), Unit::GetMaxPower(), WorldObject::GetOwner(), SpellHistory::GetRemainingCooldown(), AuraApplication::GetRemoveMode(), Unit::GetSpellHistory(), GetSpellInfo(), GetStackAmount(), AuraApplication::GetTarget(), BaseEntity::GetTypeId(), WorldObject::GetZoneAndAreaId(), Unit::HasAura(), SpellHistory::HasCooldown(), IMMUNITY_ID, POWER_MANA, Unit::RemoveAura(), Unit::RemoveAurasDueToSpell(), Unit::RemoveAurasWithFamily(), SpellHistory::ResetCooldown(), CastSpellExtraArgs::SetOriginalCaster(), CastSpellExtraArgs::SetOriginalCastId(), SPELL_AREA_FLAG_AUTOCAST, SPELL_AREA_FLAG_AUTOREMOVE, SPELL_LINK_AURA, SPELL_LINK_REMOVE, SPELLFAMILY_DRUID, SPELLFAMILY_GENERIC, SPELLFAMILY_HUNTER, SPELLFAMILY_MAGE, SPELLFAMILY_PALADIN, SPELLFAMILY_PRIEST, SPELLFAMILY_ROGUE, SpellInfo::SpellFamilyFlags, SpellInfo::SpellFamilyName, SPELLVALUE_BASE_POINT0, sSpellMgr, Object::ToCreature(), Object::ToPlayer(), TRIGGERED_FULL_MASK, and TYPEID_PLAYER.
Referenced by Unit::_ApplyAura(), Unit::_UnapplyAura(), and SetStackAmount().
|
inline |
Definition at line 277 of file SpellAuras.h.
Referenced by Unit::_ApplyAuraEffect(), spell_dh_consume_soul_vengeance_lesser::CalcHealingFromDamageTaken(), UnitAura::FillTargetMap(), DynObjAura::FillTargetMap(), AuraScript::HasEffect(), HasMoreThanOneEffectForType(), and IsArea().
| bool Aura::HasEffectType | ( | AuraType | type | ) | const |
Definition at line 1290 of file SpellAuras.cpp.
References GetAuraEffects().
Referenced by Battleground::_ProcessJoin(), CanStackWith(), and AuraScript::HasEffectType().
| bool Aura::HasMoreThanOneEffectForType | ( | AuraType | auraType | ) | const |
Definition at line 1131 of file SpellAuras.cpp.
References SpellInfo::GetEffects(), GetSpellInfo(), and HasEffect().
Referenced by Unit::IsHighestExclusiveAuraEffect().
|
inlinevirtual |
Reimplemented in UnitAura.
Definition at line 312 of file SpellAuras.h.
Referenced by UnitAura::Heartbeat().
| bool Aura::IsAppliedOnTarget | ( | ObjectGuid | guid | ) | const |
Definition at line 1363 of file SpellAuras.cpp.
References m_applications.
Referenced by _ApplyForTarget(), and Unit::_CreateAuraApplication().
| bool Aura::IsArea | ( | ) | const |
Definition at line 1141 of file SpellAuras.cpp.
References SpellInfo::GetEffects(), GetSpellInfo(), and HasEffect().
Referenced by CanStackWith(), and Unit::IsHighestExclusiveAuraEffect().
| bool Aura::IsDeathPersistent | ( | ) | const |
Definition at line 1155 of file SpellAuras.cpp.
References GetSpellInfo(), and SpellInfo::IsDeathPersistent().
Referenced by AuraScript::IsDeathPersistent(), and Unit::RemoveAllAurasOnDeath().
|
inline |
Definition at line 226 of file SpellAuras.h.
Referenced by AuraScript::IsExpired(), and DynamicObject::Update().
| bool Aura::IsPassive | ( | ) | const |
Definition at line 1150 of file SpellAuras.cpp.
References GetSpellInfo(), and SpellInfo::IsPassive().
Referenced by AuraEffect::ApplySpellMod(), CanBeSaved(), CanStackWith(), Spell::EffectStealBeneficialBuff(), Unit::GetDispellableAuraList(), GetProcEffectMask(), AuraScript::IsPassive(), list_commandscript::ListAurasCommand(), Spell::prepare(), Unit::RemoveAllAurasOnDeath(), Unit::RemoveAllAurasRequiringDeadTarget(), and Unit::RemoveArenaAuras().
|
inline |
Definition at line 227 of file SpellAuras.h.
Referenced by Battleground::_ProcessJoin(), AuraEffect::ApplySpellMod(), CanBeSaved(), and AuraScript::IsPermanent().
| bool Aura::IsProcOnCooldown | ( | TimePoint | now | ) | const |
Definition at line 1772 of file SpellAuras.cpp.
References m_procCooldown.
Referenced by GetProcEffectMask().
|
inline |
Definition at line 254 of file SpellAuras.h.
Referenced by Unit::_AddAura(), Unit::_CreateAuraApplication(), Create(), Spell::EffectApplyAura(), SpellScript::GetHitAura(), HandleAllEffects(), spell_warl_shadowburn::HandleEnergize(), RecalculateAmountOfEffects(), UnitAura::Remove(), DynObjAura::Remove(), DynamicObject::RemoveAura(), Unit::RemoveAura(), Unit::RemoveAura(), Unit::RemoveOwnedAura(), Unit::RemoveOwnedAura(), DynamicObject::Update(), and UpdateTargetMap().
| bool Aura::IsRemovedOnShapeLost | ( | Unit * | target | ) | const |
Definition at line 1160 of file SpellAuras.cpp.
References GetCasterGUID(), BaseEntity::GetGUID(), SpellInfo::HasAttribute(), m_spellInfo, SPELL_ATTR0_NOT_SHAPESHIFTED, SPELL_ATTR2_ALLOW_WHILE_NOT_SHAPESHIFTED_CASTER_FORM, and SpellInfo::Stances.
|
inline |
Definition at line 256 of file SpellAuras.h.
Referenced by Unit::_AddAura(), CanBeSaved(), Unit::RemoveAurasDueToSpellBySteal(), Unit::RemoveNotOwnSingleTargetAuras(), and Unit::RemoveOwnedAura().
| bool Aura::IsSingleTargetWith | ( | Aura const * | aura | ) | const |
Definition at line 1207 of file SpellAuras.cpp.
References GetSpellInfo(), SpellInfo::GetSpellSpecific(), and SPELL_SPECIFIC_MAGE_POLYMORPH.
|
inline |
Definition at line 301 of file SpellAuras.h.
Referenced by Player::ApplyModToSpell(), CanBeSaved(), ConsumeProcCharges(), GetProcEffectMask(), Player::IsAffectedBySpellmod(), ModCharges(), and PrepareProcChargeDrop().
| bool Aura::IsUsingStacks | ( | ) | const |
Definition at line 1078 of file SpellAuras.cpp.
References m_spellInfo, m_stackAmount, and SpellInfo::StackAmount.
Referenced by AuraApplication::BuildUpdatePacket().
| void Aura::LoadScripts | ( | ) |
Definition at line 2057 of file SpellAuras.cpp.
References SpellInfo::Id, m_loadedScripts, m_spellInfo, sScriptMgr, and TC_LOG_DEBUG.
Referenced by DynObjAura::DynObjAura(), and UnitAura::UnitAura().
| bool Aura::ModCharges | ( | int32 | num, |
| AuraRemoveMode | removeMode = AURA_REMOVE_BY_DEFAULT |
||
| ) |
Definition at line 1017 of file SpellAuras.cpp.
References CalcMaxCharges(), IsUsingCharges(), m_procCharges, Remove, and SetCharges().
Referenced by AuraScript::ModCharges(), ModChargesDelayed(), Unit::RemoveAurasDueToSpellByDispel(), and Unit::RemoveAurasDueToSpellBySteal().
| void Aura::ModChargesDelayed | ( | int32 | num, |
| AuraRemoveMode | removeMode = AURA_REMOVE_BY_DEFAULT |
||
| ) |
Definition at line 1040 of file SpellAuras.cpp.
References m_dropEvent, and ModCharges().
Referenced by ChargeDropEvent::Execute().
| bool Aura::ModStackAmount | ( | int32 | num, |
| AuraRemoveMode | removeMode = AURA_REMOVE_BY_DEFAULT, |
||
| bool | resetPeriodicTimer = true |
||
| ) |
Definition at line 1093 of file SpellAuras.cpp.
References CalcMaxCharges(), CalcMaxStackAmount(), GetStackAmount(), SpellInfo::HasAttribute(), m_spellInfo, m_stackAmount, RefreshTimers(), Remove, SetCharges(), SetNeedClientUpdateForTargets(), SetStackAmount(), SPELL_ATTR1_AURA_UNIQUE, SPELL_ATTR5_AURA_UNIQUE_PER_CASTER, and SpellInfo::StackAmount.
Referenced by ConsumeProcCharges(), Spell::EffectModifyAuraStacks(), spell_dru_pulverize::HandleEffectHit(), spell_pri_answered_prayers::HandleOnProc(), AuraScript::ModStackAmount(), Unit::RemoveAuraFromStack(), Unit::RemoveAurasDueToSpellByDispel(), and Unit::RemoveAurasDueToSpellBySteal().
| void Aura::PrepareProcChargeDrop | ( | SpellProcEntry const * | procEntry, |
| ProcEventInfo const & | eventInfo | ||
| ) |
Definition at line 1810 of file SpellAuras.cpp.
References SpellProcEntry::AttributesMask, ProcEventInfo::GetSpellInfo(), SpellInfo::HasAttribute(), IsUsingCharges(), m_procCharges, PROC_ATTR_USE_STACKS_FOR_CHARGES, SetNeedClientUpdateForTargets(), and SPELL_ATTR6_DO_NOT_CONSUME_RESOURCES.
Referenced by Unit::GetProcAurasTriggeredOnEvent(), and PrepareProcToTrigger().
| void Aura::PrepareProcToTrigger | ( | AuraApplication * | aurApp, |
| ProcEventInfo & | eventInfo, | ||
| TimePoint | now | ||
| ) |
Definition at line 1793 of file SpellAuras.cpp.
References AddProcCooldown(), ASSERT, CallScriptPrepareProcHandlers(), GetSpellInfo(), PrepareProcChargeDrop(), SetLastProcSuccessTime(), and sSpellMgr.
Referenced by Unit::GetProcAurasTriggeredOnEvent().
| void Aura::RecalculateAmountOfEffects | ( | ) |
Definition at line 1317 of file SpellAuras.cpp.
References ASSERT, GetAuraEffects(), GetCaster(), and IsRemoved().
| void Aura::RefreshDuration | ( | bool | withMods = false | ) |
Definition at line 952 of file SpellAuras.cpp.
References GetAuraEffects(), GetCaster(), GetMaxDuration(), SpellInfo::GetMaxDuration(), SpellInfo::HasAttribute(), IN_MILLISECONDS, m_periodicCosts, m_spellInfo, m_timeCla, Unit::m_unitData, SetDuration(), SetMaxDuration(), and SPELL_ATTR8_HASTE_AFFECTS_DURATION.
Referenced by AuraScript::RefreshDuration(), and RefreshTimers().
| void Aura::RefreshTimers | ( | bool | resetPeriodicTimer | ) |
Definition at line 976 of file SpellAuras.cpp.
References CalcMaxDuration(), GetAuraEffects(), GetCaster(), SpellInfo::HasAttribute(), m_maxDuration, m_spellInfo, RefreshDuration(), and SPELL_ATTR13_PERIODIC_REFRESH_EXTENDS_DURATION.
Referenced by ModStackAmount().
|
pure virtual |
Implemented in UnitAura, and DynObjAura.
Referenced by Unit::_RemoveNoStackAurasDueToAura(), Player::ActivateTalentGroup(), spell_dragonblight_corrosive_spit::AfterApply(), spell_pri_sanctuary_absorb::CalcAbsorbAmount(), Unit::CalcAbsorbResist(), Unit::CalcHealAbsorb(), spell_pri_answered_prayers::HandleOnProc(), spell_hadronox_periodic_summon_template_AuraScript::HandlePeriodic(), spell_item_nitro_boosts_backfire::HandlePeriodicDummy(), spell_volkhan_cool_down::HandlePeriodicDummyEffect(), spell_mage_radiant_spark::HandleProc(), spell_dragonblight_corrosive_spit::PeriodicTick(), AuraScript::Remove(), Unit::RemoveAura(), and Unit::RemoveNotOwnSingleTargetAuras().
| void Aura::ResetProcCooldown | ( | ) |
Definition at line 1788 of file SpellAuras.cpp.
References m_procCooldown, and GameTime::Now().
| void Aura::SetCharges | ( | uint8 | charges | ) |
Definition at line 994 of file SpellAuras.cpp.
References m_isUsingCharges, m_procCharges, and SetNeedClientUpdateForTargets().
Referenced by AuraEffect::HandleAuraDummy(), ModCharges(), ModStackAmount(), and AuraScript::SetCharges().
| void Aura::SetDuration | ( | int32 | duration, |
| bool | withMods = false |
||
| ) |
Definition at line 941 of file SpellAuras.cpp.
References Duration, GetCaster(), GetSpellInfo(), WorldObject::GetSpellModOwner(), m_duration, and SetNeedClientUpdateForTargets().
Referenced by Unit::DelayOwnedAuras(), Spell::DoSpellEffectHit(), spell_warl_absolute_corruption::HandleApply(), deserter_commandscript::HandleDeserterAdd(), misc_commandscript::HandleFreezeCommand(), spell_pri_expiation::HandleHitTarget(), spell_dk_t20_2p_rune_empowered::HandleProc(), spell_sha_t10_elemental_4p_bonus::HandleProc(), spell_dh_shattered_destiny::HandleProc(), spell_dk_glyph_of_scourge_strike_script::HandleScriptEffect(), instance_shattered_halls::instance_shattered_halls_InstanceMapScript::OnPlayerEnter(), Spell::prepare(), RefreshDuration(), AuraScript::SetDuration(), and DynamicObject::SetDuration().
|
inline |
Definition at line 258 of file SpellAuras.h.
Referenced by Unit::_AddAura(), Unit::RemoveAurasDueToSpellBySteal(), and UnregisterSingleTarget().
|
inline |
Definition at line 310 of file SpellAuras.h.
Referenced by GetProcEffectMask().
|
inline |
Definition at line 311 of file SpellAuras.h.
Referenced by PrepareProcToTrigger().
| void Aura::SetLoadedState | ( | int32 | maxDuration, |
| int32 | duration, | ||
| int32 | charges, | ||
| uint32 | recalculateMask, | ||
| SpellEffectValue const * | amount | ||
| ) |
Definition at line 1273 of file SpellAuras.cpp.
References GetAuraEffects(), GetCaster(), m_duration, m_isUsingCharges, m_maxDuration, and m_procCharges.
|
inline |
| void Aura::SetNeedClientUpdateForTargets | ( | ) | const |
Definition at line 1368 of file SpellAuras.cpp.
References m_applications.
Referenced by AuraEffect::ChangeAmount(), Unit::DelayOwnedAuras(), ModStackAmount(), PrepareProcChargeDrop(), SetCharges(), SetDuration(), SetSpellVisual(), and SetStackAmount().
| void Aura::SetSpellVisual | ( | SpellCastVisual const & | spellVisual | ) |
Definition at line 551 of file SpellAuras.cpp.
References m_spellVisual, and SetNeedClientUpdateForTargets().
| void Aura::SetStackAmount | ( | uint8 | num | ) |
Definition at line 1056 of file SpellAuras.cpp.
References GetApplicationVector(), GetAuraEffects(), GetCaster(), HandleAuraSpecificMods(), m_stackAmount, and SetNeedClientUpdateForTargets().
Referenced by battleground_eye_of_the_storm::ApplyAssaultDebuffToPlayer(), battleground_twin_peaks::ApplyAssaultDebuffToPlayer(), battleground_warsong_gulch::ApplyAssaultDebuffToPlayer(), Spell::EffectModifyAuraStacks(), AuraEffect::HandleAuraDummy(), ModStackAmount(), Unit::SetAuraStack(), spell_dru_eclipse_common::SetSpellCount(), AuraScript::SetStackAmount(), and boss_elder_brightleaf::boss_elder_brightleafAI::UpdateAI().
|
inline |
Definition at line 302 of file SpellAuras.h.
|
inline |
Definition at line 351 of file SpellAuras.h.
References DYNOBJ_AURA_TYPE.
Referenced by Spell::EffectPersistentAA().
|
inline |
Definition at line 352 of file SpellAuras.h.
References DYNOBJ_AURA_TYPE.
|
inline |
Definition at line 348 of file SpellAuras.h.
References UNIT_AURA_TYPE.
Referenced by Create(), and Spell::DoSpellEffectHit().
|
inline |
Definition at line 349 of file SpellAuras.h.
References UNIT_AURA_TYPE.
| void Aura::TriggerProcOnEvent | ( | uint32 | procEffectMask, |
| AuraApplication * | aurApp, | ||
| ProcEventInfo & | eventInfo | ||
| ) |
Definition at line 2010 of file SpellAuras.cpp.
References ASSERT_NOTNULL, CallScriptAfterProcHandlers(), CallScriptProcHandlers(), ConsumeProcCharges(), GetAuraEffectCount(), GetEffect(), GetSpellInfo(), AuraEffect::HandleProc(), AuraApplication::HasEffect(), and sSpellMgr.
Referenced by Unit::TriggerAurasProcOnEvent().
|
static |
Definition at line 390 of file SpellAuras.cpp.
References AuraCreateInfo::_auraEffectMask, AuraCreateInfo::_owner, AuraCreateInfo::_spellInfo, AuraCreateInfo::_targetEffectMask, BuildEffectMaskForOwner(), and Create().
Referenced by Pet::_LoadAuras(), Player::_LoadAuras(), and Spell::EffectPersistentAA().
|
static |
Definition at line 350 of file SpellAuras.cpp.
References AuraCreateInfo::_auraEffectMask, AuraCreateInfo::_owner, AuraCreateInfo::_spellInfo, AuraCreateInfo::_targetEffectMask, Unit::_TryStackingOrRefreshingExistingAura(), ASSERT_NODEBUGINFO, BuildEffectMaskForOwner(), AuraCreateInfo::Caster, AuraCreateInfo::CasterGUID, Create(), BaseEntity::GetGUID(), ObjectGuid::IsEmpty(), AuraCreateInfo::IsRefresh, and Object::ToUnit().
Referenced by Unit::AddAura(), Spell::DoSpellEffectHit(), Unit::HandleSpellClick(), and Unit::RemoveAurasDueToSpellBySteal().
| void Aura::UnregisterSingleTarget | ( | ) |
Definition at line 1228 of file SpellAuras.cpp.
References ASSERT, GetCaster(), Unit::GetSingleCastAuras(), m_isSingleTarget, Trinity::Containers::Lists::RemoveUnique(), and SetIsSingleTarget().
Referenced by Unit::RemoveAurasDueToSpellBySteal(), and Unit::RemoveOwnedAura().
Definition at line 855 of file SpellAuras.cpp.
References CalculatePct(), Unit::GetHealth(), Unit::GetMaxHealth(), Unit::GetMaxPower(), GetOwner(), Unit::GetPower(), GetSpellInfo(), Unit::HasAura(), m_duration, m_periodicCosts, m_timeCla, Unit::ModifyHealth(), Unit::ModifyPower(), POWER_HEALTH, Remove, and SPELL_ATTR2_NO_TARGET_PER_SECOND_COSTS.
Referenced by UpdateOwner().
| void Aura::UpdateOwner | ( | uint32 | diff, |
| WorldObject * | owner | ||
| ) |
Definition at line 817 of file SpellAuras.cpp.
References _DeleteRemovedApplications(), ASSERT, Unit::FindCurrentSpellBySpellId(), GetAuraEffects(), GetCaster(), GetId(), WorldObject::GetSpellModOwner(), m_owner, m_updateTargetMapInterval, Player::SetSpellModTakingSpell(), Update(), and UpdateTargetMap().
Referenced by Unit::_UpdateSpells(), and DynamicObject::Update().
| void Aura::UpdateTargetMap | ( | Unit * | caster, |
| bool | apply = true |
||
| ) |
Definition at line 658 of file SpellAuras.cpp.
References ABORT, ASSERT, AURA_REMOVE_BY_DEFAULT, CanBeAppliedOn(), CanStackWith(), DYNOBJ_AURA_TYPE, FillTargetMap(), GetApplicationOfTarget(), SpellInfo::GetEffects(), GetId(), GetOwner(), GetSpellInfo(), GetType(), IsRemoved(), WorldObject::IsSelfOrInSameMap(), m_applications, m_updateTargetMapInterval, TC_LOG_FATAL, UPDATE_TARGET_MAP_INTERVAL, and AuraApplication::UpdateApplyEffectMask().
Referenced by UpdateOwner().
|
friend |
Definition at line 169 of file SpellAuras.h.
|
private |
Definition at line 427 of file SpellAuras.h.
Referenced by _DeleteRemovedApplications(), and _UnapplyForTarget().
|
protected |
Definition at line 414 of file SpellAuras.h.
Referenced by _ApplyEffectForTargets(), _ApplyForTarget(), _Remove(), _UnapplyForTarget(), GetApplicationOfTarget(), GetApplicationOfTarget(), GetApplicationVector(), IsAppliedOnTarget(), SetNeedClientUpdateForTargets(), UpdateTargetMap(), and ~Aura().
|
protected |
Definition at line 400 of file SpellAuras.h.
|
protected |
Definition at line 393 of file SpellAuras.h.
|
protected |
Definition at line 395 of file SpellAuras.h.
|
protected |
Definition at line 409 of file SpellAuras.h.
|
protected |
Definition at line 394 of file SpellAuras.h.
|
protected |
Definition at line 396 of file SpellAuras.h.
Referenced by _ApplyForTarget(), and CanStackWith().
|
protected |
Definition at line 397 of file SpellAuras.h.
|
protected |
Definition at line 398 of file SpellAuras.h.
|
protected |
Definition at line 420 of file SpellAuras.h.
Referenced by _Remove(), DropChargeDelayed(), and ModChargesDelayed().
|
protected |
Definition at line 404 of file SpellAuras.h.
Referenced by Aura(), SetDuration(), SetLoadedState(), and Update().
|
protected |
Definition at line 413 of file SpellAuras.h.
Referenced by _InitEffects(), GenerateKey(), GetEffect(), and ~Aura().
|
protected |
Definition at line 416 of file SpellAuras.h.
Referenced by _Remove().
|
protected |
Definition at line 417 of file SpellAuras.h.
Referenced by UnregisterSingleTarget().
|
protected |
Definition at line 418 of file SpellAuras.h.
Referenced by Aura(), SetCharges(), and SetLoadedState().
|
protected |
Definition at line 423 of file SpellAuras.h.
Referenced by CalcPPMProcChance().
|
protected |
Definition at line 424 of file SpellAuras.h.
Referenced by CalcPPMProcChance().
| std::vector<AuraScript*> Aura::m_loadedScripts |
Definition at line 360 of file SpellAuras.h.
Referenced by CallScriptAfterDispel(), CallScriptAfterEffectApplyHandlers(), CallScriptAfterEffectProcHandlers(), CallScriptAfterEffectRemoveHandlers(), CallScriptAfterProcHandlers(), CallScriptCalcDamageAndHealingHandlers(), CallScriptCheckAreaTargetHandlers(), CallScriptCheckEffectProcHandlers(), CallScriptCheckProcHandlers(), CallScriptDispel(), CallScriptEffectAbsorbHandlers(), CallScriptEffectAbsorbHandlers(), CallScriptEffectAfterAbsorbHandlers(), CallScriptEffectAfterAbsorbHandlers(), CallScriptEffectAfterManaShieldHandlers(), CallScriptEffectApplyHandlers(), CallScriptEffectCalcAmountHandlers(), CallScriptEffectCalcCritChanceHandlers(), CallScriptEffectCalcPeriodicHandlers(), CallScriptEffectCalcSpellModHandlers(), CallScriptEffectManaShieldHandlers(), CallScriptEffectPeriodicHandlers(), CallScriptEffectProcHandlers(), CallScriptEffectRemoveHandlers(), CallScriptEffectSplitHandlers(), CallScriptEffectUpdatePeriodicHandlers(), CallScriptEnterLeaveCombatHandlers(), CallScriptOnHeartbeat(), CallScriptPrepareProcHandlers(), CallScriptProcHandlers(), GetScriptByType(), LoadScripts(), and ~Aura().
|
protected |
Definition at line 403 of file SpellAuras.h.
Referenced by Aura(), RefreshTimers(), and SetLoadedState().
|
protected |
Definition at line 401 of file SpellAuras.h.
Referenced by DropChargeDelayed(), GetType(), and UpdateOwner().
|
protected |
Definition at line 406 of file SpellAuras.h.
Referenced by Aura(), RefreshDuration(), and Update().
|
protected |
Definition at line 410 of file SpellAuras.h.
Referenced by Aura(), ModCharges(), PrepareProcChargeDrop(), SetCharges(), and SetLoadedState().
|
protected |
Definition at line 422 of file SpellAuras.h.
Referenced by AddProcCooldown(), IsProcOnCooldown(), and ResetProcCooldown().
|
private |
Definition at line 430 of file SpellAuras.h.
Referenced by _Remove().
|
protected |
Definition at line 392 of file SpellAuras.h.
Referenced by _ApplyForTarget(), Aura(), CalcMaxCharges(), CalcMaxStackAmount(), CalcPPMProcChance(), CallScriptAfterEffectApplyHandlers(), CallScriptAfterEffectProcHandlers(), CallScriptAfterEffectRemoveHandlers(), CallScriptCalcDamageAndHealingHandlers(), CallScriptCheckEffectProcHandlers(), CallScriptEffectAbsorbHandlers(), CallScriptEffectAbsorbHandlers(), CallScriptEffectAfterAbsorbHandlers(), CallScriptEffectAfterAbsorbHandlers(), CallScriptEffectAfterManaShieldHandlers(), CallScriptEffectApplyHandlers(), CallScriptEffectCalcAmountHandlers(), CallScriptEffectCalcCritChanceHandlers(), CallScriptEffectCalcPeriodicHandlers(), CallScriptEffectCalcSpellModHandlers(), CallScriptEffectManaShieldHandlers(), CallScriptEffectPeriodicHandlers(), CallScriptEffectProcHandlers(), CallScriptEffectRemoveHandlers(), CallScriptEffectSplitHandlers(), CallScriptEffectUpdatePeriodicHandlers(), CanStackWith(), UnitAura::FillTargetMap(), DynObjAura::FillTargetMap(), GetProcEffectMask(), IsRemovedOnShapeLost(), IsUsingStacks(), LoadScripts(), ModStackAmount(), RefreshDuration(), and RefreshTimers().
|
protected |
Definition at line 399 of file SpellAuras.h.
Referenced by SetSpellVisual().
|
protected |
Definition at line 411 of file SpellAuras.h.
Referenced by IsUsingStacks(), ModStackAmount(), and SetStackAmount().
|
protected |
Definition at line 405 of file SpellAuras.h.
Referenced by Aura(), RefreshDuration(), and Update().
|
protected |
Definition at line 407 of file SpellAuras.h.
Referenced by UpdateOwner(), and UpdateTargetMap().