|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
#include <SpellAuras.h>
Public Types | |
| typedef std::map< uint64, AuraApplication * > | ApplicationMap |
Static Public Member Functions | |
| static uint32 | BuildEffectMaskForOwner (SpellInfo const *spellProto, uint32 avalibleEffectMask, WorldObject *owner) |
| static Aura * | Create (SpellInfo const *spellproto, uint32 effMask, WorldObject *owner, Unit *caster, int32 *baseAmount, Item *castItem, uint64 casterGUID) |
| static Aura * | TryCreate (SpellInfo const *spellproto, uint32 effMask, WorldObject *owner, Unit *caster, int32 *baseAmount=NULL, Item *castItem=NULL, uint64 casterGUID=0) |
| static Aura * | TryRefreshStackOrCreate (SpellInfo const *spellproto, uint32 tryEffMask, WorldObject *owner, Unit *caster, int32 *baseAmount=NULL, Item *castItem=NULL, uint64 casterGUID=0, bool *refresh=NULL) |
Public Attributes | |
| std::list< AuraScript * > | m_loadedScripts |
Protected Attributes | |
| ApplicationMap | m_applications |
| time_t const | m_applyTime |
| uint64 const | m_casterGuid |
| uint8 const | m_casterLevel |
| uint64 const | m_castItemGuid |
| int32 | m_duration |
| AuraEffect * | m_effects [MAX_SPELL_EFFECTS] |
| bool | m_isRemoved: 1 |
| bool | m_isSingleTarget: 1 |
| bool | m_isUsingCharges: 1 |
| int32 | m_maxDuration |
| WorldObject *const | m_owner |
| uint8 | m_procCharges |
| SpellInfo const *const | m_spellInfo |
| uint8 | m_stackAmount |
| int32 | m_updateTargetMapInterval |
Private Member Functions | |
| void | _DeleteRemovedApplications () |
Private Attributes | |
| Unit::AuraApplicationList | m_removedApplications |
Friends | |
| Aura * | Unit::_TryStackingOrRefreshingExistingAura (SpellInfo const *newAura, uint32 effMask, Unit *caster, int32 *baseAmount, Item *castItem, uint64 casterGUID) |
Definition at line 73 of file SpellAuras.h.
| typedef std::map<uint64, AuraApplication*> Aura::ApplicationMap |
Definition at line 77 of file SpellAuras.h.
|
explicit |
Definition at line 155 of file SpellAuras.cpp.
References CalcMaxCharges(), CalcMaxDuration(), m_applyTime, m_casterGuid, m_casterLevel, m_castItemGuid, m_duration, m_isRemoved, m_isSingleTarget, m_isUsingCharges, m_maxDuration, m_owner, m_procCharges, m_spellInfo, m_stackAmount, and m_updateTargetMapInterval.
Referenced by DynObjAura::Aura::Create, UnitAura::Aura::Create, CanStackWith(), Create(), DynObjAura::DynObjAura(), HandleAuraSpecificMods(), IsProcTriggeredOnEvent(), IsSingleTargetWith(), TryCreate(), TryRefreshStackOrCreate(), Unit::_TryStackingOrRefreshingExistingAura, UnitAura::UnitAura(), and UpdateTargetMap().
|
virtual |
Definition at line 177 of file SpellAuras.cpp.
References _DeleteRemovedApplications(), ASSERT, m_applications, m_effects, m_loadedScripts, and MAX_SPELL_EFFECTS.
| void Aura::_ApplyEffectForTargets | ( | uint8 | effIndex | ) |
Definition at line 273 of file SpellAuraLifecycle.cpp.
References ASSERT, GetApplicationOfTarget(), GetOwner(), and m_applications.
|
virtual |
Reimplemented in UnitAura.
Definition at line 67 of file SpellAuraLifecycle.cpp.
References Player::AddSpellAndCategoryCooldowns(), ASSERT, Object::GetEntry(), Object::GetGUID(), Player::GetItemByGuid(), Object::GetTypeId(), IsAppliedOnTarget(), m_applications, m_castItemGuid, m_spellInfo, Object::ToPlayer(), and TYPEID_PLAYER.
Referenced by UnitAura::_ApplyForTarget(), and Unit::_CreateAuraApplication().
|
private |
Definition at line 1284 of file SpellAuraLifecycle.cpp.
References m_removedApplications.
Referenced by UpdateOwner(), and ~Aura().
Definition at line 55 of file SpellAuraLifecycle.cpp.
References m_effects, and MAX_SPELL_EFFECTS.
Referenced by DynObjAura::DynObjAura(), and UnitAura::UnitAura().
|
inline |
Definition at line 107 of file SpellAuras.h.
References GetCaster(), and UpdateTargetMap().
| void Aura::_Remove | ( | AuraRemoveMode | removeMode | ) |
Definition at line 121 of file SpellAuraLifecycle.cpp.
References Unit::_UnapplyAura(), ASSERT, AuraApplication::GetTarget(), m_applications, and m_isRemoved.
Referenced by DynObjAura::Remove(), and Unit::RemoveOwnedAura().
|
virtual |
Reimplemented in UnitAura.
Definition at line 87 of file SpellAuraLifecycle.cpp.
References ASSERT, AuraApplication::GetBase(), Object::GetGUID(), Object::GetGUIDLow(), AuraApplication::GetRemoveMode(), GetSpellInfo(), Object::GetTypeId(), SpellInfo::Id, m_applications, m_removedApplications, Player::SendCooldownEvent(), SF_LOG_ERROR, Object::ToPlayer(), and TYPEID_PLAYER.
Referenced by Unit::_UnapplyAura(), and UnitAura::_UnapplyForTarget().
| void Aura::AddProcCooldown | ( | uint32 | msec | ) |
Definition at line 36 of file SpellAuraProcRuntime.cpp.
Referenced by PrepareProcToTrigger().
|
inline |
Definition at line 108 of file SpellAuras.h.
References GetCaster(), and UpdateTargetMap().
|
static |
Definition at line 27 of file SpellAuraLifecycle.cpp.
References ASSERT, SpellEffectInfo::Effect, SpellInfo::Effects, Object::GetTypeId(), SpellEffectInfo::IsUnitOwnedAuraEffect(), MAX_SPELL_EFFECTS, SPELL_EFFECT_PERSISTENT_AREA_AURA, TYPEID_DYNAMICOBJECT, TYPEID_PLAYER, and TYPEID_UNIT.
Referenced by TryCreate(), and TryRefreshStackOrCreate().
Definition at line 623 of file SpellAuraLifecycle.cpp.
References GetCaster(), GetId(), Unit::GetSpellModOwner(), Unit::GetTotalAuraModifier(), RoundToInterval(), SPELL_AURA_MOD_DISPEL_RESIST, and SPELLMOD_RESIST_DISPEL_CHANCE.
Referenced by Spell::EffectDispelMechanic().
|
inline |
Definition at line 129 of file SpellAuras.h.
References CalcMaxCharges(), and GetCaster().
Referenced by Aura(), CalcMaxCharges(), ModCharges(), and ModStackAmount().
Definition at line 419 of file SpellAuraLifecycle.cpp.
References GetId(), Unit::GetSpellModOwner(), m_spellInfo, SPELLMOD_CHARGES, and sSpellMgr.
|
inline |
Definition at line 117 of file SpellAuras.h.
References CalcMaxDuration(), and GetCaster().
Referenced by Aura(), CalcMaxDuration(), and RefreshTimers().
Definition at line 344 of file SpellAuraLifecycle.cpp.
References Player::ApplySpellMod(), Unit::CalcSpellDuration(), GetId(), Unit::GetSpellModOwner(), IsPassive(), m_spellInfo, and SPELLMOD_DURATION.
| float Aura::CalcProcChance | ( | SpellProcEntry const & | procEntry, |
| ProcEventInfo & | eventInfo ) const |
Definition at line 136 of file SpellAuraProcRuntime.cpp.
References SpellProcEntry::chance, DamageInfo::GetAttackType(), GetCaster(), ProcEventInfo::GetDamageInfo(), GetId(), GetSpellInfo(), Unit::GetSpellModOwner(), SpellProcEntry::ratePerMinute, and SPELLMOD_CHANCE_OF_SUCCESS.
Referenced by IsProcTriggeredOnEvent().
| void Aura::CallScriptAfterDispel | ( | DispelInfo * | dispelInfo | ) |
Definition at line 73 of file SpellAuraScriptHooks.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 125 of file SpellAuraScriptHooks.cpp.
References AURA_SCRIPT_HOOK_EFFECT_AFTER_APPLY, AuraEffect::GetEffIndex(), m_loadedScripts, and m_spellInfo.
Referenced by AuraEffect::HandleEffect().
| void Aura::CallScriptAfterEffectProcHandlers | ( | AuraEffect const * | aurEff, |
| AuraApplication const * | aurApp, | ||
| ProcEventInfo & | eventInfo ) |
Definition at line 387 of file SpellAuraScriptHooks.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 139 of file SpellAuraScriptHooks.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 355 of file SpellAuraScriptHooks.cpp.
References AURA_SCRIPT_HOOK_AFTER_PROC, and m_loadedScripts.
Referenced by TriggerProcOnEvent().
| bool Aura::CallScriptCheckAreaTargetHandlers | ( | Unit * | target | ) |
Definition at line 45 of file SpellAuraScriptHooks.cpp.
References AURA_SCRIPT_HOOK_CHECK_AREA_TARGET, and m_loadedScripts.
Referenced by CheckAreaTarget().
| bool Aura::CallScriptCheckProcHandlers | ( | AuraApplication const * | aurApp, |
| ProcEventInfo & | eventInfo ) |
Definition at line 303 of file SpellAuraScriptHooks.cpp.
References AURA_SCRIPT_HOOK_CHECK_PROC, and m_loadedScripts.
Referenced by IsProcTriggeredOnEvent(), and Unit::ProcDamageAndSpellFor().
| void Aura::CallScriptDispel | ( | DispelInfo * | dispelInfo | ) |
Definition at line 60 of file SpellAuraScriptHooks.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 229 of file SpellAuraScriptHooks.cpp.
References AURA_SCRIPT_HOOK_EFFECT_ABSORB, AuraEffect::GetEffIndex(), m_loadedScripts, and m_spellInfo.
Referenced by Unit::CalcAbsorbResist().
| void Aura::CallScriptEffectAfterAbsorbHandlers | ( | AuraEffect * | aurEff, |
| AuraApplication const * | aurApp, | ||
| DamageInfo & | dmgInfo, | ||
| uint32 & | absorbAmount ) |
Definition at line 247 of file SpellAuraScriptHooks.cpp.
References AURA_SCRIPT_HOOK_EFFECT_AFTER_ABSORB, AuraEffect::GetEffIndex(), m_loadedScripts, and m_spellInfo.
Referenced by Unit::CalcAbsorbResist().
| void Aura::CallScriptEffectAfterManaShieldHandlers | ( | AuraEffect * | aurEff, |
| AuraApplication const * | aurApp, | ||
| DamageInfo & | dmgInfo, | ||
| uint32 & | absorbAmount ) |
Definition at line 275 of file SpellAuraScriptHooks.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 86 of file SpellAuraScriptHooks.cpp.
References AURA_SCRIPT_HOOK_EFFECT_APPLY, AuraEffect::GetEffIndex(), m_loadedScripts, and m_spellInfo.
Referenced by AuraEffect::HandleEffect().
| void Aura::CallScriptEffectCalcAmountHandlers | ( | AuraEffect const * | aurEff, |
| int32 & | amount, | ||
| bool & | canBeRecalculated ) |
Definition at line 187 of file SpellAuraScriptHooks.cpp.
References AURA_SCRIPT_HOOK_EFFECT_CALC_AMOUNT, AuraEffect::GetEffIndex(), m_loadedScripts, and m_spellInfo.
Referenced by AuraEffect::CalculateAmount().
| void Aura::CallScriptEffectCalcPeriodicHandlers | ( | AuraEffect const * | aurEff, |
| bool & | isPeriodic, | ||
| int32 & | amplitude ) |
Definition at line 201 of file SpellAuraScriptHooks.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 215 of file SpellAuraScriptHooks.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 261 of file SpellAuraScriptHooks.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 153 of file SpellAuraScriptHooks.cpp.
References AURA_SCRIPT_HOOK_EFFECT_PERIODIC, AuraEffect::GetEffIndex(), m_loadedScripts, and m_spellInfo.
Referenced by AuraEffect::PeriodicTick().
| bool Aura::CallScriptEffectProcHandlers | ( | AuraEffect const * | aurEff, |
| AuraApplication const * | aurApp, | ||
| ProcEventInfo & | eventInfo ) |
Definition at line 368 of file SpellAuraScriptHooks.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 106 of file SpellAuraScriptHooks.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 289 of file SpellAuraScriptHooks.cpp.
References AURA_SCRIPT_HOOK_EFFECT_SPLIT, AuraEffect::GetEffIndex(), m_loadedScripts, and m_spellInfo.
| void Aura::CallScriptEffectUpdatePeriodicHandlers | ( | AuraEffect * | aurEff | ) |
Definition at line 173 of file SpellAuraScriptHooks.cpp.
References AURA_SCRIPT_HOOK_EFFECT_UPDATE_PERIODIC, AuraEffect::GetEffIndex(), m_loadedScripts, and m_spellInfo.
Referenced by AuraEffect::UpdatePeriodic().
| bool Aura::CallScriptPrepareProcHandlers | ( | AuraApplication const * | aurApp, |
| ProcEventInfo & | eventInfo ) |
Definition at line 319 of file SpellAuraScriptHooks.cpp.
References AURA_SCRIPT_HOOK_PREPARE_PROC, and m_loadedScripts.
Referenced by PrepareProcToTrigger().
| bool Aura::CallScriptProcHandlers | ( | AuraApplication const * | aurApp, |
| ProcEventInfo & | eventInfo ) |
Definition at line 338 of file SpellAuraScriptHooks.cpp.
References AURA_SCRIPT_HOOK_PROC, and m_loadedScripts.
Referenced by TriggerProcOnEvent().
| bool Aura::CanBeAppliedOn | ( | Unit * | target | ) |
Definition at line 1151 of file SpellAuraLifecycle.cpp.
References CheckAreaTarget(), GetCasterGUID(), GetOwner(), GetSpellInfo(), Unit::IsDuringRemoveFromWorld(), Object::IsInWorld(), and IsSingleTarget().
Referenced by UpdateTargetMap().
| bool Aura::CanBeSaved | ( | ) | const |
Definition at line 546 of file SpellAuraLifecycle.cpp.
References GetCasterGUID(), GetCharges(), GetId(), GetOwner(), GetSpellInfo(), HasEffectType(), IsPassive(), IsSingleTarget(), Skyfire::Spells::IsUnsavableDruidEclipseAura(), Skyfire::Spells::IsUnsavableSpecialAura(), IsUsingCharges(), SPELL_AURA_CONTROL_VEHICLE, and SPELL_AURA_CONVERT_RUNE.
| bool Aura::CanBeSentToClient | ( | ) | const |
Definition at line 581 of file SpellAuraLifecycle.cpp.
References GetSpellInfo(), SpellInfo::HasAreaAuraEffect(), HasEffectType(), IsPassive(), SPELL_AURA_ABILITY_IGNORE_AURASTATE, and SPELL_AURA_CAST_WHILE_WALKING.
| bool Aura::CanStackWith | ( | Aura const * | existingAura | ) | const |
Definition at line 1173 of file SpellAuraLifecycle.cpp.
References Aura(), DYNOBJ_AURA_TYPE, SpellInfo::Effects, Vehicle::GetAvailableSeatCount(), GetCasterGUID(), GetCastItemGUID(), GetId(), GetOwner(), GetSpellInfo(), GetType(), Unit::GetVehicleKit(), HasEffectType(), IsArea(), SpellInfo::IsChanneled(), IsPassive(), SpellEffectInfo::IsTargetingArea(), m_spellInfo, MAX_SPELL_EFFECTS, SPELL_ATTR0_CU_ENCHANT_PROC, SPELL_ATTR3_STACK_FOR_DIFF_CASTERS, SPELL_AURA_CONTROL_VEHICLE, SPELL_AURA_OBS_MOD_HEALTH, SPELL_AURA_OBS_MOD_POWER, SPELL_AURA_PERIODIC_DAMAGE, 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_POWER_BURN, SPELL_GROUP_STACK_RULE_EXCLUSIVE, SPELL_GROUP_STACK_RULE_EXCLUSIVE_FROM_SAME_CASTER, SpellInfo::SpellFamilyName, sSpellMgr, Object::ToUnit(), and SpellEffectInfo::TriggerSpell.
Referenced by Unit::_RemoveNoStackAurasDueToAura(), and UpdateTargetMap().
| bool Aura::CheckAreaTarget | ( | Unit * | target | ) |
Definition at line 1168 of file SpellAuraLifecycle.cpp.
References CallScriptCheckAreaTargetHandlers().
Referenced by CanBeAppliedOn().
|
static |
Definition at line 110 of file SpellAuras.cpp.
References ASSERT, Aura(), Object::GetGUID(), Object::GetTypeId(), ObjectAccessor::GetUnit(), Object::IsInWorld(), IsRemoved(), SpellInfo::IsSingleTarget(), Object::isType(), MAX_EFFECT_MASK, Object::ToUnit(), TYPEID_DYNAMICOBJECT, TYPEID_PLAYER, TYPEID_UNIT, and TYPEMASK_UNIT.
Referenced by TryCreate(), and TryRefreshStackOrCreate().
|
inline |
Definition at line 131 of file SpellAuras.h.
References AURA_REMOVE_BY_DEFAULT, and ModCharges().
Referenced by spell_monk_dampen_harm::spell_monk_dampen_harm_AuraScript::Absorb(), and Player::RemoveSpellMods().
|
pure virtual |
Implemented in DynObjAura, and UnitAura.
Referenced by UpdateTargetMap().
| void Aura::GetApplicationList | ( | Unit::AuraApplicationList & | applicationList | ) | const |
Definition at line 691 of file SpellAuraLifecycle.cpp.
References m_applications.
Referenced by SetStackAmount().
|
inline |
Definition at line 174 of file SpellAuras.h.
References m_applications.
Referenced by AuraEffect::GetApplicationList(), AuraEffect::GetTargetList(), and Unit::RemoveAreaAurasDueToLeaveWorld().
|
inline |
Definition at line 177 of file SpellAuras.h.
References m_applications.
|
inline |
Definition at line 176 of file SpellAuras.h.
References m_applications.
Referenced by Unit::_ApplyAuraEffect(), _ApplyEffectForTargets(), Unit::_UnapplyAura(), Unit::CalcAbsorbResist(), Spell::EffectDispelMechanic(), Spell::EffectStealBeneficialBuff(), GetCaster(), Unit::GetDispellableAuraList(), spell_monk_roll::spell_monk_roll_SpellScript::HandleBeforeCast(), AuraEffect::HandleEffect(), Unit::RemoveAura(), Unit::RemoveAura(), Unit::RemoveAurasByType(), Unit::RestoreDisplayId(), and UpdateTargetMap().
|
inline |
Definition at line 114 of file SpellAuras.h.
References m_applyTime.
Referenced by Player::DuelComplete().
| Unit * Aura::GetCaster | ( | ) | const |
Definition at line 196 of file SpellAuras.cpp.
References GetApplicationOfTarget(), GetCasterGUID(), GetOwner(), ObjectAccessor::GetUnit(), and GetUnitOwner().
Referenced by Unit::_ApplyAura(), Unit::_CreateAuraApplication(), _RegisterForTargets(), Unit::_UnapplyAura(), ApplyForTargets(), CalcDispelChance(), CalcMaxCharges(), CalcMaxDuration(), CalcProcChance(), AuraEffect::GetCaster(), LuaAura::GetCaster(), LuaAura::GetCasterLevel(), Unit::HandleAuraProc(), spell_monk_diffuse_magic::spell_monk_diffuse_magic_SpellScript::HandleOnHit(), AuraEffect::HandlePeriodicTriggerSpellAuraTick(), RecalculateAmountOfEffects(), RefreshTimers(), Unit::RemoveAurasDueToSpellBySteal(), Unit::RemoveNotOwnSingleTargetAuras(), SetDuration(), SetLoadedState(), SetStackAmount(), UnregisterSingleTarget(), and UpdateOwner().
|
inline |
Definition at line 91 of file SpellAuras.h.
References m_casterGuid.
Referenced by Unit::_AddAura(), AuraApplication::_InitFlags(), Unit::_UnapplyAura(), AuraEffect::ApplySpellMod(), CanBeAppliedOn(), CanBeSaved(), CanStackWith(), AuraApplication::ClientUpdate(), Unit::DelayOwnedAuras(), Player::DuelComplete(), Spell::EffectDispelMechanic(), Unit::GetAuraApplication(), GetCaster(), AuraEffect::GetCasterGUID(), LuaAura::GetCasterGUID(), Unit::HandleAuraProc(), HandleAuraSpecificMods(), list_commandscript::HandleListAurasCommand(), Unit::HasNegativeAuraWithAttribute(), IsRemovedOnShapeLost(), Unit::RemoveAura(), Unit::RemoveAuraFromStack(), SmartAI::RemoveAuras(), Unit::RemoveAurasByType(), Unit::RemoveAurasDueToSpell(), Unit::RemoveAurasDueToSpellByDispel(), Unit::RemoveAurasDueToSpellBySteal(), Unit::RemoveAurasWithFamily(), Player::RemoveItemDependentAurasAndCasts(), Unit::RemoveNotOwnSingleTargetAuras(), Player::SendAurasForTarget(), Unit::SpellHealingBonusDone(), and UnregisterSingleTarget().
|
inline |
Definition at line 139 of file SpellAuras.h.
References m_casterLevel.
Referenced by AuraApplication::ClientUpdate(), and Player::SendAurasForTarget().
|
inline |
Definition at line 90 of file SpellAuras.h.
References m_castItemGuid.
Referenced by CanStackWith(), Unit::GetAuraApplication(), Unit::HandleAuraProcOnPowerAmount(), Unit::HandleDummyAuraProc(), Unit::HandleOverrideClassScriptAuraProc(), AuraEffect::HandlePeriodicHealAurasTick(), Unit::HandleProcTriggerSpell(), and spell_gen_bonked::spell_gen_bonked_SpellScript::HandleScript().
|
inline |
Definition at line 126 of file SpellAuras.h.
References m_procCharges.
Referenced by AuraEffect::CalculateSpellMod(), CanBeSaved(), AuraApplication::ClientUpdate(), Spell::EffectStealBeneficialBuff(), Unit::GetDispellableAuraList(), Unit::HandleAuraRaidProcFromCharge(), Unit::HandleAuraRaidProcFromChargeWithValue(), Unit::HandleDummyAuraProc(), list_commandscript::HandleListAurasCommand(), AuraEffect::HandleRaidProcFromChargeAuraProc(), AuraEffect::HandleRaidProcFromChargeWithValueAuraProc(), IsProcTriggeredOnEvent(), ModStackAmount(), Unit::RemoveAurasDueToSpellBySteal(), Player::RestoreSpellMods(), Player::SendAurasForTarget(), and TriggerProcOnEvent().
|
inline |
Definition at line 119 of file SpellAuras.h.
References m_duration.
Referenced by Battleground::_ProcessJoin(), AuraEffect::CalculatePeriodic(), AuraApplication::ClientUpdate(), Unit::DelayOwnedAuras(), Spell::DoTriggersOnSpellHit(), Spell::EffectHeal(), Spell::EffectScriptEffect(), LuaAura::GetDuration(), Unit::HandleDummyAuraProc(), list_commandscript::HandleListAurasCommand(), spell_dru_glyph_of_starfire::spell_dru_glyph_of_starfire_SpellScript::HandleScriptEffect(), IsExpired(), npc_air_force_bots::npc_air_force_botsAI::MoveInLineOfSight(), Unit::ProcDamageAndSpellFor(), RefreshTimers(), Unit::RemoveAurasDueToSpellBySteal(), Player::SendAurasForTarget(), and npc_tournament_training_dummy::npc_tournament_training_dummyAI::UpdateAI().
|
inline |
Definition at line 95 of file SpellAuras.h.
References ASSERT, DYNOBJ_AURA_TYPE, GetType(), and m_owner.
Referenced by DynObjAura::DynObjAura(), and DynObjAura::FillTargetMap().
|
inline |
Definition at line 168 of file SpellAuras.h.
References ASSERT, m_effects, and MAX_SPELL_EFFECTS.
Referenced by AuraApplication::_HandleEffect(), Pet::_SaveAuras(), Player::_SaveAuras(), AuraEffect::ApplySpellMod(), Spell::CheckCasterAuras(), AuraApplication::ClientUpdate(), Spell::EffectScriptEffect(), Unit::HandleAuraProc(), HandleAuraSpecificMods(), Unit::HandleDummyAuraProc(), spell_gen_aura_of_anger::spell_gen_aura_of_anger_AuraScript::HandleEffectPeriodicUpdate(), spell_monk_diffuse_magic::spell_monk_diffuse_magic_SpellScript::HandleOnHit(), HasEffect(), ModStackAmount(), Unit::ProcDamageAndSpellFor(), RefreshTimers(), Unit::RemoveAurasDueToSpellBySteal(), Player::SendAurasForTarget(), and TriggerProcOnEvent().
|
inline |
Definition at line 169 of file SpellAuras.h.
References m_effects, and MAX_SPELL_EFFECTS.
Referenced by Unit::GetAuraApplication(), Unit::RemoveAura(), and Unit::RemoveAurasDueToSpell().
|
inline |
Definition at line 88 of file SpellAuras.h.
References GetSpellInfo(), and SpellInfo::Id.
Referenced by Unit::_AddAura(), Unit::_UnapplyAura(), Unit::_UnapplyAura(), CalcDispelChance(), CalcMaxCharges(), CalcMaxDuration(), CalcProcChance(), CanBeSaved(), CanStackWith(), AuraApplication::ClientUpdate(), Unit::DelayOwnedAuras(), Spell::EffectDispelMechanic(), LuaAura::GetAuraId(), HandleAuraSpecificMods(), list_commandscript::HandleListAurasCommand(), spell_monk_purifying_brew::spell_monk_purifying_brew_SpellScript::HandleOnHit(), Pet::IsPetAura(), IsProcTriggeredOnEvent(), Unit::IsTriggeredAtSpellProcEvent(), PrepareProcToTrigger(), Unit::RemoveAura(), Unit::RemoveAurasDueToSpellBySteal(), Unit::RemoveAurasWithInterruptFlags(), Unit::RemoveAurasWithMechanic(), Unit::RemoveOwnedAura(), Player::SendAurasForTarget(), SetDuration(), UpdateOwner(), and UpdateTargetMap().
|
inline |
Definition at line 115 of file SpellAuras.h.
References m_maxDuration.
Referenced by AuraApplication::ClientUpdate(), Spell::EffectScriptEffect(), LuaAura::GetMaxDuration(), AuraEffect::GetTotalTicks(), Unit::HandleDummyAuraProc(), list_commandscript::HandleListAurasCommand(), spell_monk_elusive_brew::spell_monk_elusive_brew_SpellScript::HandleOnHit(), spell_dru_glyph_of_starfire::spell_dru_glyph_of_starfire_SpellScript::HandleScriptEffect(), IsPermanent(), Unit::ProcDamageAndSpellFor(), RefreshDuration(), Unit::RemoveAurasDueToSpellBySteal(), and Player::SendAurasForTarget().
|
inline |
Definition at line 93 of file SpellAuras.h.
References m_owner.
Referenced by _ApplyEffectForTargets(), CanBeAppliedOn(), CanBeSaved(), CanStackWith(), GetCaster(), LuaAura::GetOwner(), Unit::RemoveAura(), Unit::RemoveOwnedAura(), and UpdateTargetMap().
| AuraScript * Aura::GetScriptByName | ( | std::string const & | scriptName | ) | const |
Definition at line 169 of file SpellAuras.cpp.
References m_loadedScripts.
|
inline |
Definition at line 87 of file SpellAuras.h.
References m_spellInfo.
Referenced by Unit::_AddAura(), Unit::_ApplyAura(), Unit::_CreateAuraApplication(), Battleground::_ProcessJoin(), Unit::_RemoveNoStackAurasDueToAura(), Unit::_UnapplyAura(), _UnapplyForTarget(), AuraEffect::ApplySpellMod(), CalcProcChance(), CanBeAppliedOn(), CanBeSaved(), CanBeSentToClient(), CanStackWith(), Spell::CheckCasterAuras(), AuraApplication::ClientUpdate(), Spell::EffectDispelMechanic(), Spell::EffectScriptEffect(), Spell::EffectStealBeneficialBuff(), DynObjAura::FillTargetMap(), UnitAura::FillTargetMap(), Unit::GetDispellableAuraList(), GetId(), AuraEffect::HandleAuraDummy(), Unit::HandleAuraProc(), HandleAuraSpecificMods(), list_commandscript::HandleListAurasCommand(), spell_monk_diffuse_magic::spell_monk_diffuse_magic_SpellScript::HandleOnHit(), spell_dru_glyph_of_starfire::spell_dru_glyph_of_starfire_SpellScript::HandleScriptEffect(), Unit::HasNegativeAuraWithAttribute(), IsArea(), IsDeathPersistent(), IsPassive(), IsProcTriggeredOnEvent(), IsSingleTargetWith(), Unit::IsTriggeredAtSpellProcEvent(), Unit::RemoveAllAurasExceptType(), Unit::RemoveAllAurasExceptType(), Unit::RemoveAllAurasRequiringDeadTarget(), Unit::RemoveArenaAuras(), Unit::RemoveAurasDueToSpellByDispel(), Unit::RemoveAurasDueToSpellBySteal(), Unit::RemoveAurasWithFamily(), Unit::RemoveAurasWithInterruptFlags(), Unit::RemoveAurasWithMechanic(), Player::RemoveItemDependentAurasAndCasts(), Unit::RemoveNotOwnSingleTargetAuras(), Player::RestoreSpellMods(), Player::SendAurasForTarget(), Unit::SpellHealingBonusDone(), and UpdateTargetMap().
|
inline |
Definition at line 133 of file SpellAuras.h.
References m_stackAmount.
Referenced by AuraEffect::CalculateAmount(), AuraApplication::ClientUpdate(), Spell::EffectStealBeneficialBuff(), LuaAura::GetCharges(), Unit::GetDispellableAuraList(), LuaAura::GetStackAmount(), Unit::HandleAuraProc(), HandleAuraSpecificMods(), Unit::HandleDummyAuraProc(), spell_sindragosa_frost_breath::spell_sindragosa_frost_breath_SpellScript::HandleInfusion(), list_commandscript::HandleListAurasCommand(), spell_monk_diffuse_magic::spell_monk_diffuse_magic_SpellScript::HandleOnHit(), spell_intense_cold::spell_intense_cold_AuraScript::HandlePeriodicTick(), Unit::HandleProcTriggerSpell(), spell_festergut_gastric_bloat::spell_festergut_gastric_bloat_SpellScript::HandleScript(), spell_gen_bonked::spell_gen_bonked_SpellScript::HandleScript(), ModStackAmount(), spell_halion_marks::spell_halion_marks_AuraScript::OnRemove(), Player::SendAurasForTarget(), Unit::SpellHealingBonusDone(), boss_trollgore::boss_trollgoreAI::UpdateAI(), npc_slad_ran_constrictor::npc_slad_ran_constrictorAI::UpdateAI(), and npc_tournament_training_dummy::npc_tournament_training_dummyAI::UpdateAI().
| AuraObjectType Aura::GetType | ( | ) | const |
Definition at line 206 of file SpellAuras.cpp.
References DYNOBJ_AURA_TYPE, m_owner, TYPEID_DYNAMICOBJECT, and UNIT_AURA_TYPE.
Referenced by CanStackWith(), GetDynobjOwner(), GetUnitOwner(), Unit::RemoveAuraFromStack(), and UpdateTargetMap().
|
inline |
Definition at line 94 of file SpellAuras.h.
References ASSERT, GetType(), m_owner, and UNIT_AURA_TYPE.
Referenced by spell_dru_might_of_ursoc::spell_dru_might_of_ursoc_AuraScript::CalculateAmount(), UnitAura::FillTargetMap(), GetCaster(), HandleAuraSpecificMods(), Unit::ProcDamageAndSpellFor(), UnitAura::Remove(), Unit::RemoveNotOwnSingleTargetAuras(), and UnitAura::UnitAura().
| void Aura::HandleAllEffects | ( | AuraApplication * | aurApp, |
| uint8 | mode, | ||
| bool | apply ) |
Definition at line 683 of file SpellAuraLifecycle.cpp.
References ASSERT, IsRemoved(), m_effects, and MAX_SPELL_EFFECTS.
| void Aura::HandleAuraSpecificMods | ( | AuraApplication const * | aurApp, |
| Unit * | caster, | ||
| bool | apply, | ||
| bool | onReapply ) |
Definition at line 708 of file SpellAuraLifecycle.cpp.
References Player::ActivateTaxiPathTo(), Unit::AddAura(), Player::AddSpellCooldown(), Unit::ApplySpellImmune(), Aura(), AURA_REMOVE_BY_DEATH, AURA_REMOVE_BY_ENEMY_SPELL, AURA_REMOVE_BY_EXPIRE, CalculatePct(), Unit::CastCustomSpell(), Unit::CastSpell(), CLASS_DEATH_KNIGHT, Unit::CombatStop(), DOT, EFFECT_0, FORM_BEAR, FORM_CAT, AuraEffect::GetAmount(), Skyfire::Spells::GetArcanePotencyTriggerSpellId(), Unit::GetAura(), Unit::GetAuraEffect(), Unit::GetAuraOfRankedSpell(), Skyfire::Spells::GetAvengingWrathAuraSpellId(), Skyfire::Spells::GetAvengingWrathMarkerAuraSpellId(), GetCasterGUID(), Unit::getClass(), Skyfire::Spells::GetDrainSoulExecuteAuraSpellId(), Skyfire::Spells::GetDruidBearFormSpellId(), Skyfire::Spells::GetDruidCatFormSpellId(), Skyfire::Spells::GetDruidFeralTier10BonusAuraSpellId(), Skyfire::Spells::GetDruidFeralTier10BonusTriggerSpellId(), Skyfire::Spells::GetDruidTier8RestorationAuraSpellId(), Skyfire::Spells::GetDruidTier8RestorationTriggerSpellId(), Unit::GetDummyAuraEffect(), GetEffect(), Skyfire::Spells::GetForbearanceAuraSpellId(), Skyfire::Spells::GetGlyphOfBlurredSpeedAuraSpellId(), Skyfire::Spells::GetGlyphOfBlurredSpeedSprintSpellId(), Skyfire::Spells::GetGlyphOfFreezingTrapAuraSpellId(), Skyfire::Spells::GetGlyphOfFreezingTrapTriggerSpellId(), Skyfire::Spells::GetGlyphOfPenguinAuraSpellId(), Skyfire::Spells::GetGlyphOfPowerWordShieldAuraSpellId(), Skyfire::Spells::GetGlyphOfPowerWordShieldHealSpellId(), Object::GetGUID(), Skyfire::Spells::GetHeroicFuryCooldownSpellId(), GetId(), Skyfire::Spells::GetImprovedDevouringPlagueDamageSpellId(), Skyfire::Spells::GetImprovedDevouringPlagueHealSpellId(), Skyfire::Spells::GetImprovedFearTriggerSpellId(), Skyfire::Spells::GetInvisibilityFadeSpellId(), Unit::GetMaxPower(), Unit::GetOwner(), Skyfire::Spells::GetPaladinTier10HolyBonusAuraSpellId(), Skyfire::Spells::GetPaladinTier10HolyBonusTriggerSpellId(), Skyfire::Spells::GetPolymorphPenguinSpellId(), Skyfire::Spells::GetPolymorphSheepSpellId(), Skyfire::Spells::GetProwlAuraSpellId(), Skyfire::Spells::GetRaptureEnergizeSpellId(), Skyfire::Spells::GetRaptureRankedSpellId(), AuraApplication::GetRemoveMode(), Unit::GetShapeshiftForm(), Skyfire::Spells::GetSharedSufferingTriggerSpellId(), Player::GetSpellCooldownDelay(), GetSpellInfo(), GetStackAmount(), Skyfire::Spells::GetStealthAuraSpellId(), Skyfire::Spells::GetStonedAuraTriggerSpellId(), AuraApplication::GetTarget(), Skyfire::Spells::GetTheBeastWithinTalentSpellId(), Skyfire::Spells::GetTheBeastWithinTriggerSpellId(), AuraEffect::GetTotalTicks(), Object::GetTypeId(), GetUnitOwner(), WorldObject::GetZoneAndAreaId(), Unit::HasAura(), Player::HasSpellCooldown(), Unit::HealthAbovePct(), IMMUNITY_ID, m_spellInfo, POWER_MANA, Unit::RemoveAura(), Unit::RemoveAurasDueToSpell(), Unit::RemoveAurasWithFamily(), Unit::RemoveMovementImpairingAuras(), Unit::RemoveOwnedAura(), Player::RemoveRunesByAuraEffect(), Player::RemoveSpellCooldown(), SF_LOG_ERROR, SPELL_AURA_DUMMY, SPELL_AURA_PERIODIC_DUMMY, SPELL_LINK_AURA, Unit::SpellDamageBonusDone(), Unit::SpellDamageBonusTaken(), SPELLFAMILY_DEATHKNIGHT, SPELLFAMILY_DRUID, SPELLFAMILY_GENERIC, SPELLFAMILY_HUNTER, SPELLFAMILY_MAGE, SPELLFAMILY_PALADIN, SPELLFAMILY_PRIEST, SPELLFAMILY_ROGUE, SPELLFAMILY_WARLOCK, sSpellMgr, Object::ToPlayer(), and TYPEID_PLAYER.
Referenced by Unit::_ApplyAura(), Unit::_UnapplyAura(), and SetStackAmount().
|
inline |
Definition at line 166 of file SpellAuras.h.
References GetEffect().
Referenced by Unit::_ApplyAuraEffect(), DynObjAura::FillTargetMap(), UnitAura::FillTargetMap(), HasEffectType(), IsArea(), RecalculateAmountOfEffects(), RefreshTimers(), and SetStackAmount().
| bool Aura::HasEffectType | ( | AuraType | type | ) | const |
Definition at line 664 of file SpellAuraLifecycle.cpp.
References HasEffect(), m_effects, and MAX_SPELL_EFFECTS.
Referenced by Unit::_AddAura(), Battleground::_ProcessJoin(), CanBeSaved(), CanBeSentToClient(), CanStackWith(), IsSingleTargetWith(), and SmartAI::RemoveAuras().
|
inline |
Definition at line 178 of file SpellAuras.h.
References m_applications.
Referenced by _ApplyForTarget(), and Unit::_CreateAuraApplication().
| bool Aura::IsArea | ( | ) | const |
Definition at line 526 of file SpellAuraLifecycle.cpp.
References GetSpellInfo(), HasEffect(), and MAX_SPELL_EFFECTS.
Referenced by CanStackWith().
| bool Aura::IsDeathPersistent | ( | ) | const |
Definition at line 541 of file SpellAuraLifecycle.cpp.
References GetSpellInfo(), and SpellInfo::IsDeathPersistent().
Referenced by Unit::RemoveAllAurasOnDeath().
|
inline |
Definition at line 123 of file SpellAuras.h.
References GetDuration().
| bool Aura::IsPassive | ( | ) | const |
Definition at line 536 of file SpellAuraLifecycle.cpp.
References GetSpellInfo(), and SpellInfo::IsPassive().
Referenced by AuraEffect::ApplySpellMod(), CalcMaxDuration(), CanBeSaved(), CanBeSentToClient(), CanStackWith(), Spell::EffectStealBeneficialBuff(), Unit::GetDispellableAuraList(), list_commandscript::HandleListAurasCommand(), IsProcTriggeredOnEvent(), Spell::prepare(), Unit::RemoveAllAurasOnDeath(), Unit::RemoveAllAurasRequiringDeadTarget(), Unit::RemoveArenaAuras(), SmartAI::RemoveAuras(), and Player::RemoveItemDependentAurasAndCasts().
|
inline |
Definition at line 124 of file SpellAuras.h.
References GetMaxDuration().
Referenced by Battleground::_ProcessJoin(), and AuraEffect::ApplySpellMod().
| bool Aura::IsProcOnCooldown | ( | ) | const |
Definition at line 26 of file SpellAuraProcRuntime.cpp.
Referenced by IsProcTriggeredOnEvent().
| bool Aura::IsProcTriggeredOnEvent | ( | AuraApplication * | aurApp, |
| ProcEventInfo & | eventInfo ) const |
Definition at line 62 of file SpellAuraProcRuntime.cpp.
References Aura(), BASE_ATTACK, CalcProcChance(), CallScriptCheckProcHandlers(), ItemTemplate::Class, CONDITION_SOURCE_TYPE_SPELL_PROC, EQUIPMENT_SLOT_MAINHAND, EQUIPMENT_SLOT_OFFHAND, ProcEventInfo::GetActionTarget(), ProcEventInfo::GetActor(), DamageInfo::GetAttackType(), GetCharges(), ProcEventInfo::GetDamageInfo(), GetId(), GetSpellInfo(), AuraApplication::GetTarget(), Item::GetTemplate(), Object::GetTypeId(), Player::GetUseableItemByPos(), INVENTORY_SLOT_BAG_0, Item::IsBroken(), Unit::IsInFeralForm(), IsPassive(), IsProcOnCooldown(), IsUsingCharges(), ITEM_CLASS_ARMOR, ITEM_CLASS_WEAPON, OFF_ATTACK, RANGED_ATTACK, roll_chance_f(), sConditionMgr, sSpellMgr, ItemTemplate::SubClass, Object::ToPlayer(), and TYPEID_PLAYER.
|
inline |
Definition at line 154 of file SpellAuras.h.
References m_isRemoved.
Referenced by Unit::_AddAura(), Unit::_CreateAuraApplication(), Create(), HandleAllEffects(), RecalculateAmountOfEffects(), DynObjAura::Remove(), UnitAura::Remove(), Unit::RemoveAura(), Unit::RemoveAura(), Unit::RemoveOwnedAura(), Unit::RemoveOwnedAura(), and UpdateTargetMap().
|
inline |
Definition at line 145 of file SpellAuras.h.
References GetCasterGUID(), Object::GetGUID(), m_spellInfo, SPELL_ATTR0_NOT_SHAPESHIFT, and SPELL_ATTR2_NOT_NEED_SHAPESHIFT.
|
inline |
Definition at line 157 of file SpellAuras.h.
References m_isSingleTarget.
Referenced by Unit::_AddAura(), CanBeAppliedOn(), CanBeSaved(), Unit::RemoveAurasDueToSpellBySteal(), and Unit::RemoveOwnedAura().
| bool Aura::IsSingleTargetWith | ( | Aura const * | aura | ) | const |
Definition at line 586 of file SpellAuraLifecycle.cpp.
References Aura(), GetSpellInfo(), SpellInfo::GetSpellSpecific(), HasEffectType(), SPELL_AURA_CONTROL_VEHICLE, SPELL_SPECIFIC_JUDGEMENT, and SPELL_SPECIFIC_MAGE_POLYMORPH.
Referenced by Unit::_AddAura().
|
inline |
Definition at line 192 of file SpellAuras.h.
References m_isUsingCharges.
Referenced by CanBeSaved(), IsProcTriggeredOnEvent(), ModCharges(), PrepareProcToTrigger(), Player::RemoveSpellMods(), Player::RestoreSpellMods(), and TriggerProcOnEvent().
| void Aura::LoadScripts | ( | ) |
Definition at line 26 of file SpellAuraScriptHooks.cpp.
References m_loadedScripts, m_spellInfo, SF_LOG_DEBUG, and sScriptMgr.
Referenced by DynObjAura::DynObjAura(), and UnitAura::UnitAura().
| bool Aura::ModCharges | ( | int32 | num, |
| AuraRemoveMode | removeMode = AURA_REMOVE_BY_DEFAULT ) |
Definition at line 431 of file SpellAuraLifecycle.cpp.
References CalcMaxCharges(), IsUsingCharges(), m_procCharges, Remove(), and SetCharges().
Referenced by DropCharge(), Unit::RemoveAurasDueToSpellByDispel(), and Unit::RemoveAurasDueToSpellBySteal().
| bool Aura::ModStackAmount | ( | int32 | num, |
| AuraRemoveMode | removeMode = AURA_REMOVE_BY_DEFAULT ) |
Definition at line 476 of file SpellAuraLifecycle.cpp.
References CalcMaxCharges(), GetCharges(), GetEffect(), GetStackAmount(), m_spellInfo, m_stackAmount, MAX_SPELL_EFFECTS, RefreshSpellMods(), RefreshTimers(), Remove(), SetCharges(), SetNeedClientUpdateForTargets(), SetStackAmount(), SPELL_AURA_ADD_FLAT_MODIFIER, and SPELL_AURA_ADD_PCT_MODIFIER.
Referenced by spell_valkyr_essences::spell_valkyr_essences_AuraScript::Absorb(), spell_the_lich_king_necrotic_plague_jump::spell_the_lich_king_necrotic_plague_SpellScript::AddMissingStack(), Unit::HandleProcTriggerSpell(), Unit::RemoveAuraFromStack(), Unit::RemoveAurasDueToSpellByDispel(), and Unit::RemoveAurasDueToSpellBySteal().
| void Aura::PrepareProcToTrigger | ( | AuraApplication * | aurApp, |
| ProcEventInfo & | eventInfo ) |
Definition at line 41 of file SpellAuraProcRuntime.cpp.
References AddProcCooldown(), ASSERT, CallScriptPrepareProcHandlers(), SpellProcEntry::cooldown, GetId(), IsUsingCharges(), m_procCharges, SetNeedClientUpdateForTargets(), and sSpellMgr.
| void Aura::RecalculateAmountOfEffects | ( | ) |
Definition at line 674 of file SpellAuraLifecycle.cpp.
References ASSERT, GetCaster(), HasEffect(), IsRemoved(), m_effects, and MAX_SPELL_EFFECTS.
| void Aura::RefreshDuration | ( | ) |
Definition at line 378 of file SpellAuraLifecycle.cpp.
References GetMaxDuration(), and SetDuration().
Referenced by spell_monk_disable::spell_monk_disable_AuraScript::OnPeriodic(), RefreshTimers(), and AuraEffect::UpdatePeriodic().
| void Aura::RefreshSpellMods | ( | ) |
Definition at line 519 of file SpellAuraLifecycle.cpp.
References Unit::GetTarget(), and m_applications.
Referenced by ModStackAmount().
| void Aura::RefreshTimers | ( | ) |
Definition at line 383 of file SpellAuraLifecycle.cpp.
References CalcMaxDuration(), AuraEffect::CalculatePeriodic(), GetCaster(), GetDuration(), GetEffect(), HasEffect(), m_maxDuration, m_spellInfo, MAX_SPELL_EFFECTS, RefreshDuration(), and SPELL_ATTR8_DONT_RESET_PERIODIC_TIMER.
Referenced by ModStackAmount().
|
pure virtual |
Implemented in DynObjAura, and UnitAura.
References AURA_REMOVE_BY_DEFAULT.
Referenced by Unit::CalcAbsorbResist(), Unit::CalcHealAbsorb(), ModCharges(), ModStackAmount(), LuaAura::Remove(), Unit::RemoveAura(), Unit::RemoveNotOwnSingleTargetAuras(), Player::RestoreBaseRune(), and TriggerProcOnEvent().
| void Aura::SetCharges | ( | uint8 | charges | ) |
Definition at line 410 of file SpellAuraLifecycle.cpp.
References m_isUsingCharges, m_procCharges, and SetNeedClientUpdateForTargets().
Referenced by AuraEffect::HandleAuraDummy(), Unit::HandleAuraRaidProcFromCharge(), Unit::HandleAuraRaidProcFromChargeWithValue(), AuraEffect::HandleRaidProcFromChargeAuraProc(), AuraEffect::HandleRaidProcFromChargeWithValueAuraProc(), ModCharges(), and ModStackAmount().
| void Aura::SetDuration | ( | int32 | duration, |
| bool | withMods = false ) |
Definition at line 366 of file SpellAuraLifecycle.cpp.
References GetCaster(), GetId(), Unit::GetSpellModOwner(), m_duration, SetNeedClientUpdateForTargets(), and SPELLMOD_DURATION.
Referenced by Unit::DelayOwnedAuras(), Spell::EffectScriptEffect(), deserter_commandscript::HandleDeserterAdd(), Unit::HandleDummyAuraProc(), spell_monk_elusive_brew::spell_monk_elusive_brew_SpellScript::HandleOnHit(), spell_dru_glyph_of_starfire::spell_dru_glyph_of_starfire_SpellScript::HandleScriptEffect(), Spell::prepare(), RefreshDuration(), and LuaAura::SetDuration().
|
inline |
Definition at line 159 of file SpellAuras.h.
References m_isSingleTarget.
Referenced by Unit::_AddAura(), Unit::RemoveAurasDueToSpellBySteal(), and UnregisterSingleTarget().
| void Aura::SetLoadedState | ( | int32 | maxduration, |
| int32 | duration, | ||
| int32 | charges, | ||
| uint8 | stackamount, | ||
| uint32 | recalculateMask, | ||
| int32 * | amount ) |
Definition at line 643 of file SpellAuraLifecycle.cpp.
References GetCaster(), m_duration, m_effects, m_isUsingCharges, m_maxDuration, m_procCharges, m_stackAmount, and MAX_SPELL_EFFECTS.
|
inline |
Definition at line 116 of file SpellAuras.h.
References m_maxDuration.
Referenced by Spell::EffectScriptEffect(), Unit::HandleDummyAuraProc(), spell_monk_elusive_brew::spell_monk_elusive_brew_SpellScript::HandleOnHit(), spell_dru_glyph_of_starfire::spell_dru_glyph_of_starfire_SpellScript::HandleScriptEffect(), and LuaAura::SetMaxDuration().
| void Aura::SetNeedClientUpdateForTargets | ( | ) | const |
Definition at line 700 of file SpellAuraLifecycle.cpp.
References m_applications.
Referenced by Unit::DelayOwnedAuras(), ModStackAmount(), PrepareProcToTrigger(), SetCharges(), SetDuration(), and SetStackAmount().
| void Aura::SetStackAmount | ( | uint8 | num | ) |
Definition at line 453 of file SpellAuraLifecycle.cpp.
References GetApplicationList(), GetCaster(), HandleAuraSpecificMods(), HasEffect(), m_effects, m_stackAmount, MAX_SPELL_EFFECTS, and SetNeedClientUpdateForTargets().
Referenced by AuraEffect::HandleAuraDummy(), ModStackAmount(), Unit::SetAuraStack(), and LuaAura::SetStackAmount().
|
inline |
Definition at line 193 of file SpellAuras.h.
References m_isUsingCharges.
Referenced by AuraEffect::HandleRaidProcFromChargeAuraProc(), and AuraEffect::HandleRaidProcFromChargeWithValueAuraProc().
| void Aura::TriggerProcOnEvent | ( | AuraApplication * | aurApp, |
| ProcEventInfo & | eventInfo ) |
Definition at line 156 of file SpellAuraProcRuntime.cpp.
References CallScriptAfterProcHandlers(), CallScriptProcHandlers(), GetCharges(), GetEffect(), AuraEffect::HandleProc(), AuraApplication::HasEffect(), IsUsingCharges(), MAX_SPELL_EFFECTS, and Remove().
|
static |
Definition at line 98 of file SpellAuras.cpp.
References ASSERT, Aura(), BuildEffectMaskForOwner(), Create(), and MAX_EFFECT_MASK.
Referenced by Pet::_LoadAuras(), Player::_LoadAuras(), and Spell::EffectPersistentAA().
|
static |
Definition at line 72 of file SpellAuras.cpp.
References Unit::_TryStackingOrRefreshingExistingAura(), ASSERT, Aura(), BuildEffectMaskForOwner(), Create(), MAX_EFFECT_MASK, and Object::ToUnit().
Referenced by Unit::AddAura(), Spell::DoSpellHitOnUnit(), misc_commandscript::HandleAuraCommand(), misc_commandscript::HandleFreezeCommand(), Unit::HandleSpellClick(), Unit::RemoveAurasDueToSpellBySteal(), and boss_kelidan_the_breaker::boss_kelidan_the_breakerAI::UpdateAI().
| void Aura::UnregisterSingleTarget | ( | ) |
Definition at line 611 of file SpellAuraLifecycle.cpp.
References ASSERT, GetCaster(), GetCasterGUID(), ObjectAccessor::GetObjectInOrOutOfWorld(), Unit::GetSingleCastAuras(), m_isSingleTarget, and SetIsSingleTarget().
Referenced by Unit::RemoveAurasDueToSpellBySteal(), and Unit::RemoveOwnedAura().
Definition at line 334 of file SpellAuraLifecycle.cpp.
References m_duration.
Referenced by UpdateOwner().
| void Aura::UpdateOwner | ( | uint32 | diff, |
| WorldObject * | owner ) |
Definition at line 295 of file SpellAuraLifecycle.cpp.
References _DeleteRemovedApplications(), ASSERT, Unit::FindCurrentSpellBySpellId(), GetCaster(), GetId(), Unit::GetSpellModOwner(), m_effects, m_owner, m_updateTargetMapInterval, MAX_SPELL_EFFECTS, Player::SetSpellModTakingSpell(), Update(), and UpdateTargetMap().
Referenced by Unit::_UpdateSpells().
| void Aura::UpdateTargetMap | ( | Unit * | caster, |
| bool | apply = true ) |
Definition at line 135 of file SpellAuraLifecycle.cpp.
References ASSERT, Aura(), AURA_REMOVE_BY_DEFAULT, CanBeAppliedOn(), CanStackWith(), DYNOBJ_AURA_TYPE, FillTargetMap(), GetApplicationOfTarget(), GetId(), GetOwner(), GetSpellInfo(), GetType(), IsRemoved(), m_applications, m_updateTargetMapInterval, MAX_SPELL_EFFECTS, SF_LOG_FATAL, and UPDATE_TARGET_MAP_INTERVAL.
Referenced by _RegisterForTargets(), ApplyForTargets(), and UpdateOwner().
|
friend |
References Aura().
|
protected |
Definition at line 247 of file SpellAuras.h.
Referenced by _ApplyEffectForTargets(), _ApplyForTarget(), _Remove(), _UnapplyForTarget(), GetApplicationList(), GetApplicationMap(), GetApplicationOfTarget(), GetApplicationOfTarget(), IsAppliedOnTarget(), RefreshSpellMods(), SetNeedClientUpdateForTargets(), UpdateTargetMap(), and ~Aura().
|
protected |
Definition at line 235 of file SpellAuras.h.
Referenced by Aura(), and GetApplyTime().
|
protected |
Definition at line 233 of file SpellAuras.h.
Referenced by Aura(), and GetCasterGUID().
|
protected |
Definition at line 242 of file SpellAuras.h.
Referenced by Aura(), and GetCasterLevel().
|
protected |
Definition at line 234 of file SpellAuras.h.
Referenced by _ApplyForTarget(), Aura(), and GetCastItemGUID().
|
protected |
Definition at line 239 of file SpellAuras.h.
Referenced by Aura(), GetDuration(), SetDuration(), SetLoadedState(), and Update().
|
protected |
Definition at line 246 of file SpellAuras.h.
Referenced by _InitEffects(), GetEffect(), GetEffectMask(), HandleAllEffects(), HasEffectType(), RecalculateAmountOfEffects(), SetLoadedState(), SetStackAmount(), UpdateOwner(), and ~Aura().
|
protected |
Definition at line 249 of file SpellAuras.h.
Referenced by _Remove(), Aura(), and IsRemoved().
|
protected |
Definition at line 250 of file SpellAuras.h.
Referenced by Aura(), IsSingleTarget(), SetIsSingleTarget(), and UnregisterSingleTarget().
|
protected |
Definition at line 251 of file SpellAuras.h.
Referenced by Aura(), IsUsingCharges(), SetCharges(), SetLoadedState(), and SetUsingCharges().
| std::list<AuraScript*> Aura::m_loadedScripts |
Definition at line 228 of file SpellAuras.h.
Referenced by CallScriptAfterDispel(), CallScriptAfterEffectApplyHandlers(), CallScriptAfterEffectProcHandlers(), CallScriptAfterEffectRemoveHandlers(), CallScriptAfterProcHandlers(), CallScriptCheckAreaTargetHandlers(), CallScriptCheckProcHandlers(), CallScriptDispel(), CallScriptEffectAbsorbHandlers(), CallScriptEffectAfterAbsorbHandlers(), CallScriptEffectAfterManaShieldHandlers(), CallScriptEffectApplyHandlers(), CallScriptEffectCalcAmountHandlers(), CallScriptEffectCalcPeriodicHandlers(), CallScriptEffectCalcSpellModHandlers(), CallScriptEffectManaShieldHandlers(), CallScriptEffectPeriodicHandlers(), CallScriptEffectProcHandlers(), CallScriptEffectRemoveHandlers(), CallScriptEffectSplitHandlers(), CallScriptEffectUpdatePeriodicHandlers(), CallScriptPrepareProcHandlers(), CallScriptProcHandlers(), GetScriptByName(), LoadScripts(), and ~Aura().
|
protected |
Definition at line 238 of file SpellAuras.h.
Referenced by Aura(), GetMaxDuration(), RefreshTimers(), SetLoadedState(), and SetMaxDuration().
|
protected |
Definition at line 236 of file SpellAuras.h.
Referenced by Aura(), GetDynobjOwner(), GetOwner(), GetType(), GetUnitOwner(), and UpdateOwner().
|
protected |
Definition at line 243 of file SpellAuras.h.
Referenced by Aura(), GetCharges(), ModCharges(), PrepareProcToTrigger(), SetCharges(), and SetLoadedState().
|
private |
Definition at line 254 of file SpellAuras.h.
Referenced by _DeleteRemovedApplications(), and _UnapplyForTarget().
|
protected |
Definition at line 232 of file SpellAuras.h.
Referenced by _ApplyForTarget(), Aura(), CalcMaxCharges(), CalcMaxDuration(), CallScriptAfterEffectApplyHandlers(), CallScriptAfterEffectProcHandlers(), CallScriptAfterEffectRemoveHandlers(), CallScriptEffectAbsorbHandlers(), CallScriptEffectAfterAbsorbHandlers(), CallScriptEffectAfterManaShieldHandlers(), CallScriptEffectApplyHandlers(), CallScriptEffectCalcAmountHandlers(), CallScriptEffectCalcPeriodicHandlers(), CallScriptEffectCalcSpellModHandlers(), CallScriptEffectManaShieldHandlers(), CallScriptEffectPeriodicHandlers(), CallScriptEffectProcHandlers(), CallScriptEffectRemoveHandlers(), CallScriptEffectSplitHandlers(), CallScriptEffectUpdatePeriodicHandlers(), CanStackWith(), GetSpellInfo(), HandleAuraSpecificMods(), IsRemovedOnShapeLost(), LoadScripts(), ModStackAmount(), and RefreshTimers().
|
protected |
Definition at line 244 of file SpellAuras.h.
Referenced by Aura(), GetStackAmount(), ModStackAmount(), SetLoadedState(), and SetStackAmount().
|
protected |
Definition at line 240 of file SpellAuras.h.
Referenced by Aura(), UpdateOwner(), and UpdateTargetMap().