spell_forge_of_souls_soul_sickness Class Reference

Private Member Functions

 PrepareAuraScript (spell_forge_of_souls_soul_sickness)
bool Validate (SpellInfo const *) override
void HandleStun (AuraEffect const *aurEff, AuraEffectHandleModes)
void Register () override

Additional Inherited Members

- Public Member Functions inherited from AuraScript
 AuraScript ()
bool _Validate (SpellInfo const *entry) override
bool _Load (Aura *aura)
void _PrepareScriptCall (AuraScriptHookType hookType, AuraApplication const *aurApp=nullptr)
void _FinishScriptCall ()
bool _IsDefaultActionPrevented () const
void PreventDefaultAction ()
SpellInfo const * GetSpellInfo () const
SpellEffectInfo const & GetEffectInfo (SpellEffIndex effIndex) const
uint32 GetId () const
ObjectGuid GetCasterGUID () const
UnitGetCaster () const
GameObjectGetGObjCaster () const
WorldObjectGetOwner () const
UnitGetUnitOwner () const
DynamicObjectGetDynobjOwner () const
void Remove (AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
AuraGetAura () const
AuraObjectType GetType () const
int32 GetDuration () const
void SetDuration (int32 duration, bool withMods=false)
void RefreshDuration ()
time_t GetApplyTime () const
int32 GetMaxDuration () const
void SetMaxDuration (int32 duration)
int32 CalcMaxDuration () const
bool IsExpired () const
bool IsPermanent () const
uint8 GetCharges () const
void SetCharges (uint8 charges)
uint8 CalcMaxCharges () const
bool ModCharges (int8 num, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
bool DropCharge (AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
uint8 GetStackAmount () const
void SetStackAmount (uint8 num)
bool ModStackAmount (int32 num, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
bool IsPassive () const
bool IsDeathPersistent () const
bool HasEffect (uint8 effIndex) const
AuraEffectGetEffect (uint8 effIndex) const
bool HasEffectType (AuraType type) const
UnitGetTarget () const
AuraApplication const * GetTargetApplication () const
Difficulty GetCastDifficulty () const
- Public Member Functions inherited from _SpellScript
 _SpellScript ()
virtual ~_SpellScript ()
void _Register ()
void _Unload ()
void _Init (std::string const *scriptname, uint32 spellId)
std::string const * _GetScriptName () const
 _SpellScript (_SpellScript const &right)=delete
 _SpellScript (_SpellScript &&right)=delete
_SpellScriptoperator= (_SpellScript const &right)=delete
_SpellScriptoperator= (_SpellScript &&right)=delete
virtual bool Load ()
virtual void Unload ()
- Static Public Member Functions inherited from _SpellScript
static bool ValidateSpellInfo (std::initializer_list< uint32 > spellIds)
template<class T >
static bool ValidateSpellInfo (T const &spellIds)
- Public Attributes inherited from AuraScript
HookList< CheckAreaTargetHandlerDoCheckAreaTarget
HookList< AuraDispelHandlerOnDispel
HookList< AuraDispelHandlerAfterDispel
HookList< EffectApplyHandlerOnEffectApply
HookList< EffectApplyHandlerAfterEffectApply
HookList< EffectApplyHandlerOnEffectRemove
HookList< EffectApplyHandlerAfterEffectRemove
HookList< EffectPeriodicHandlerOnEffectPeriodic
HookList< EffectUpdatePeriodicHandlerOnEffectUpdatePeriodic
HookList< EffectCalcAmountHandlerDoEffectCalcAmount
HookList< EffectCalcPeriodicHandlerDoEffectCalcPeriodic
HookList< EffectCalcSpellModHandlerDoEffectCalcSpellMod
HookList< EffectCalcCritChanceHandlerDoEffectCalcCritChance
HookList< EffectAbsorbHandlerOnEffectAbsorb
HookList< EffectAbsorbHandlerAfterEffectAbsorb
HookList< EffectManaShieldHandlerOnEffectManaShield
HookList< EffectManaShieldHandlerAfterEffectManaShield
HookList< EffectSplitHandlerOnEffectSplit
HookList< CheckProcHandlerDoCheckProc
HookList< CheckEffectProcHandlerDoCheckEffectProc
HookList< AuraProcHandlerDoPrepareProc
HookList< AuraProcHandlerOnProc
HookList< AuraProcHandlerAfterProc
HookList< EffectProcHandlerOnEffectProc
HookList< EffectProcHandlerAfterEffectProc
HookList< EnterLeaveCombatHandlerOnEnterLeaveCombat
- Protected Attributes inherited from _SpellScript
uint8 m_currentScriptState
std::string const * m_scriptName
uint32 m_scriptSpellId

Member Function Documentation

◆ HandleStun()

void spell_forge_of_souls_soul_sickness::HandleStun ( AuraEffect const *  aurEff,
274  {
275  if (GetTargetApplication()->GetRemoveMode() == AURA_REMOVE_BY_EXPIRE)
276  {
277  Unit* target = GetTarget();
278  target->CastSpell(target, SPELL_LETHARGY, aurEff);
279  }
280  }
Definition: forge_of_souls.cpp:75
AuraApplication const * GetTargetApplication() const
Definition: SpellScript.cpp:1514
Unit * GetTarget() const
Definition: SpellScript.cpp:1484
Definition: SpellAuraDefines.h:69
Definition: Unit.h:746
SpellCastResult CastSpell(CastSpellTargetArg const &targets, uint32 spellId, CastSpellExtraArgs const &args={ })
Definition: Object.cpp:2730
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ PrepareAuraScript()

spell_forge_of_souls_soul_sickness::PrepareAuraScript ( spell_forge_of_souls_soul_sickness  )

◆ Register()

void spell_forge_of_souls_soul_sickness::Register ( )

Implements _SpellScript.

283  {
285  }
#define AuraEffectRemoveFn(F, I, N, M)
Definition: SpellScript.h:1023
void HandleStun(AuraEffect const *aurEff, AuraEffectHandleModes)
Definition: forge_of_souls.cpp:273
HookList< EffectApplyHandler > AfterEffectRemove
Definition: SpellScript.h:1022
Definition: SpellAuraDefines.h:50
Definition: SpellAuraDefines.h:98
Definition: SharedDefines.h:29
+ Here is the call graph for this function:

◆ Validate()

bool spell_forge_of_souls_soul_sickness::Validate ( SpellInfo const *  )

Reimplemented from _SpellScript.

269  {
270  return ValidateSpellInfo({ SPELL_LETHARGY });
271  }
Definition: forge_of_souls.cpp:75
static bool ValidateSpellInfo(std::initializer_list< uint32 > spellIds)
Definition: SpellScript.h:169

The documentation for this class was generated from the following file: