spell_ahn_kahet_swarm Class Reference

Private Member Functions

 PrepareSpellScript (spell_ahn_kahet_swarm)
bool Validate (SpellInfo const *) override
void CountTargets (std::list< WorldObject *> &targets)
void HandleDummy (SpellEffIndex)
void Register () override

Private Attributes

uint32 _targetCount = 0

Additional Inherited Members

- Public Member Functions inherited from SpellScript
bool _Validate (SpellInfo const *entry) override
bool _Load (Spell *spell)
void _InitHit ()
bool _IsEffectPrevented (SpellEffIndex effIndex) const
bool _IsDefaultEffectPrevented (SpellEffIndex effIndex) const
void _PrepareScriptCall (SpellScriptHookType hookType)
void _FinishScriptCall ()
bool IsInCheckCastHook () const
bool IsAfterTargetSelectionPhase () const
bool IsInTargetHook () const
bool IsInModifiableHook () const
bool IsInHitPhase () const
bool IsInEffectHook () const
virtual void OnPrecast ()
UnitGetCaster () const
GameObjectGetGObjCaster () const
UnitGetOriginalCaster () const
SpellInfo const * GetSpellInfo () const
SpellEffectInfo const & GetEffectInfo (SpellEffIndex effIndex) const
SpellValue const * GetSpellValue () const
WorldLocation const * GetExplTargetDest () const
void SetExplTargetDest (WorldLocation &loc)
WorldObjectGetExplTargetWorldObject () const
UnitGetExplTargetUnit () const
GameObjectGetExplTargetGObj () const
ItemGetExplTargetItem () const
int64 GetUnitTargetCountForEffect (SpellEffIndex effect) const
int64 GetGameObjectTargetCountForEffect (SpellEffIndex effect) const
int64 GetItemTargetCountForEffect (SpellEffIndex effect) const
int64 GetCorpseTargetCountForEffect (SpellEffIndex effect) const
UnitGetHitUnit () const
CreatureGetHitCreature () const
PlayerGetHitPlayer () const
ItemGetHitItem () const
GameObjectGetHitGObj () const
CorpseGetHitCorpse () const
WorldLocationGetHitDest () const
int32 GetHitDamage () const
void SetHitDamage (int32 damage)
void PreventHitDamage ()
int32 GetHitHeal () const
void SetHitHeal (int32 heal)
void PreventHitHeal ()
bool IsHitCrit () const
SpellGetSpell () const
AuraGetHitAura (bool dynObjAura=false) const
void PreventHitAura ()
void PreventHitEffect (SpellEffIndex effIndex)
void PreventHitDefaultEffect (SpellEffIndex effIndex)
SpellEffectInfo const & GetEffectInfo () const
int32 GetEffectValue () const
void SetEffectValue (int32 value)
ItemGetCastItem () const
void CreateItem (uint32 itemId, ItemContext context)
SpellInfo const * GetTriggeringSpell () const
void FinishCast (SpellCastResult result, int32 *param1=nullptr, int32 *param2=nullptr)
void SetCustomCastResultMessage (SpellCustomErrors result)
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 SpellScript
HookList< CastHandlerBeforeCast
HookList< CastHandlerOnCast
HookList< CastHandlerAfterCast
HookList< CheckCastHandlerOnCheckCast
HookList< OnCalculateResistAbsorbHandlerOnCalculateResistAbsorb
HookList< EffectHandlerOnEffectLaunch
HookList< EffectHandlerOnEffectLaunchTarget
HookList< EffectHandlerOnEffectHit
HookList< EffectHandlerOnEffectHitTarget
HookList< EffectHandlerOnEffectSuccessfulDispel
HookList< BeforeHitHandlerBeforeHit
HookList< HitHandlerOnHit
HookList< HitHandlerAfterHit
HookList< OnCalcCritChanceHandlerOnCalcCritChance
HookList< ObjectAreaTargetSelectHandlerOnObjectAreaTargetSelect
HookList< ObjectTargetSelectHandlerOnObjectTargetSelect
HookList< DestinationTargetSelectHandlerOnDestinationTargetSelect
- Protected Attributes inherited from _SpellScript
uint8 m_currentScriptState
std::string const * m_scriptName
uint32 m_scriptSpellId

Member Function Documentation

◆ CountTargets()

void spell_ahn_kahet_swarm::CountTargets ( std::list< WorldObject *> &  targets)
228  {
229  _targetCount = targets.size();
230  }
uint32 _targetCount
Definition: boss_elder_nadox.cpp:259
+ Here is the caller graph for this function:

◆ HandleDummy()

void spell_ahn_kahet_swarm::HandleDummy ( SpellEffIndex  )
233  {
234  if (_targetCount)
235  {
236  if (Aura* aura = GetCaster()->GetAura(SPELL_SWARM_BUFF))
237  {
238  aura->SetStackAmount(_targetCount);
239  aura->RefreshDuration();
240  }
241  else
242  {
243  CastSpellExtraArgs args;
247  }
248  }
249  else
251  }
TriggerCastFlags TriggerFlags
Definition: SpellDefines.h:455
uint32 _targetCount
Definition: boss_elder_nadox.cpp:259
Unit * GetCaster() const
Definition: SpellScript.cpp:532
CastSpellExtraArgs & AddSpellMod(SpellValueMod mod, int32 val)
Definition: SpellDefines.h:452
void RemoveAurasDueToSpell(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, uint32 reqEffMask=0, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
Definition: Unit.cpp:3686
Definition: boss_elder_nadox.cpp:44
Definition: SpellDefines.h:434
Will return SPELL_FAILED_DONT_REPORT in CheckCast functions.
Definition: SpellDefines.h:260
Definition: SpellAuras.h:121
SpellCastResult CastSpell(CastSpellTargetArg const &targets, uint32 spellId, CastSpellExtraArgs const &args={ })
Definition: Object.cpp:2730
Definition: SpellDefines.h:227
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ PrepareSpellScript()

spell_ahn_kahet_swarm::PrepareSpellScript ( spell_ahn_kahet_swarm  )

◆ Register()

void spell_ahn_kahet_swarm::Register ( )

Implements _SpellScript.

254  {
257  }
Definition: SharedDefines.h:2558
HookList< ObjectAreaTargetSelectHandler > OnObjectAreaTargetSelect
Definition: SpellScript.h:489
HookList< EffectHandler > OnEffectHit
Definition: SpellScript.h:465
#define SpellObjectAreaTargetSelectFn(F, I, N)
Definition: SpellScript.h:490
void CountTargets(std::list< WorldObject *> &targets)
Definition: boss_elder_nadox.cpp:227
void HandleDummy(SpellEffIndex)
Definition: boss_elder_nadox.cpp:232
#define SpellEffectFn(F, I, N)
Definition: SpellScript.h:468
Definition: SharedDefines.h:1151
Definition: SharedDefines.h:29
+ Here is the call graph for this function:

◆ Validate()

bool spell_ahn_kahet_swarm::Validate ( SpellInfo const *  )

Reimplemented from _SpellScript.

223  {
225  }
Definition: boss_elder_nadox.cpp:44
static bool ValidateSpellInfo(std::initializer_list< uint32 > spellIds)
Definition: SpellScript.h:169

Member Data Documentation

◆ _targetCount

uint32 spell_ahn_kahet_swarm::_targetCount = 0

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