TrinityCore
Loading...
Searching...
No Matches
spell_sha_stormflurry Class Reference
+ Inheritance diagram for spell_sha_stormflurry:

Public Member Functions

 spell_sha_stormflurry (uint32 stormflurrySpellId, uint32 mainHandDamageSpellId, uint32 offHandDamageSpellId)
 
bool Validate (SpellInfo const *spellInfo) override
 
bool Load () override
 
void HandleProc (SpellEffIndex) const
 
void Register () override
 
- Public Member Functions inherited from SpellScript
 SpellScript () noexcept
 
 ~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 ()
 
virtual int32 CalcCastTime (int32 castTime)
 
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 const &loc)
 
WorldObjectGetExplTargetWorldObject () const
 
UnitGetExplTargetUnit () const
 
GameObjectGetExplTargetGObj () const
 
ItemGetExplTargetItem () const
 
int64 GetUnitTargetCountForEffect (SpellEffIndex effect) const
 
int32 GetUnitTargetIndexForEffect (ObjectGuid const &target, 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, bool withRemoved=false) const
 
void PreventHitAura ()
 
void PreventHitEffect (SpellEffIndex effIndex)
 
void PreventHitDefaultEffect (SpellEffIndex effIndex)
 
SpellEffectInfo const & GetEffectInfo () const
 
int32 GetEffectValueAsInt () const
 
SpellEffectValue GetEffectValue () const
 
void SetEffectValue (SpellEffectValue value)
 
float GetEffectVariance () const
 
void SetEffectVariance (float variance)
 
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 SpellScriptBase
 SpellScriptBase () noexcept
 
virtual ~SpellScriptBase ()
 
 SpellScriptBase (SpellScriptBase const &right)=delete
 
 SpellScriptBase (SpellScriptBase &&right)=delete
 
SpellScriptBaseoperator= (SpellScriptBase const &right)=delete
 
SpellScriptBaseoperator= (SpellScriptBase &&right)=delete
 
void _Register ()
 
void _Unload ()
 
void _Init (std::string const &scriptname, uint32 spellId)
 
std::string_view GetScriptName () const
 
virtual void Unload ()
 

Private Attributes

uint32 _stormflurrySpellId
 
uint32 _mainHandDamageSpellId
 
uint32 _offHandDamageSpellId
 

Additional Inherited Members

- Static Public Member Functions inherited from SpellScriptBase
static bool ValidateSpellInfo (std::initializer_list< uint32 > spellIds)
 
template<class T >
static bool ValidateSpellInfo (T const &spellIds)
 
static bool ValidateSpellEffect (std::initializer_list< std::pair< uint32, SpellEffIndex > > effects)
 
template<class T >
static bool ValidateSpellEffect (T const &spellEffects)
 
- Public Attributes inherited from SpellScript
HookList< CastHandlerBeforeCast
 
HookList< CastHandlerOnCast
 
HookList< CastHandlerAfterCast
 
HookList< CheckCastHandlerOnCheckCast
 
HookList< EffectHandlerOnEffectLaunch
 
HookList< EffectHandlerOnEffectLaunchTarget
 
HookList< EffectHandlerOnEffectHit
 
HookList< EffectHandlerOnEffectHitTarget
 
HookList< EffectHandlerOnEffectSuccessfulDispel
 
HookList< BeforeHitHandlerBeforeHit
 
HookList< HitHandlerOnHit
 
HookList< HitHandlerAfterHit
 
HookList< OnCalcCritChanceHandlerOnCalcCritChance
 
HookList< ObjectAreaTargetSelectHandlerOnObjectAreaTargetSelect
 
HookList< ObjectTargetSelectHandlerOnObjectTargetSelect
 
HookList< DestinationTargetSelectHandlerOnDestinationTargetSelect
 
HookList< DamageAndHealingCalcHandlerCalcDamage
 
HookList< DamageAndHealingCalcHandlerCalcHealing
 
HookList< OnCalculateResistAbsorbHandlerOnCalculateResistAbsorb
 
HookList< EmpowerStageCompletedHandlerOnEmpowerStageCompleted
 
HookList< EmpowerStageCompletedHandlerOnEmpowerCompleted
 
- Protected Types inherited from SpellScriptBase
template<typename ScriptFunc >
using GetScriptClass_t = typename GetScriptClass< ScriptFunc >::type
 
- Protected Attributes inherited from SpellScriptBase
std::string_view m_scriptName
 
uint32 m_scriptSpellId
 
uint8 m_currentScriptState
 

Detailed Description

Definition at line 2640 of file spell_shaman.cpp.

Constructor & Destructor Documentation

◆ spell_sha_stormflurry()

spell_sha_stormflurry::spell_sha_stormflurry ( uint32  stormflurrySpellId,
uint32  mainHandDamageSpellId,
uint32  offHandDamageSpellId 
)
inlineexplicit

Definition at line 2643 of file spell_shaman.cpp.

Member Function Documentation

◆ HandleProc()

void spell_sha_stormflurry::HandleProc ( SpellEffIndex  ) const
inline

Definition at line 2659 of file spell_shaman.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Load()

bool spell_sha_stormflurry::Load ( )
inlineoverridevirtual

Reimplemented from SpellScriptBase.

Definition at line 2654 of file spell_shaman.cpp.

+ Here is the call graph for this function:

◆ Register()

void spell_sha_stormflurry::Register ( )
inlineoverridevirtual

Implements SpellScriptBase.

Definition at line 2679 of file spell_shaman.cpp.

+ Here is the call graph for this function:

◆ Validate()

bool spell_sha_stormflurry::Validate ( SpellInfo const *  spellInfo)
inlineoverridevirtual

Reimplemented from SpellScriptBase.

Definition at line 2646 of file spell_shaman.cpp.

+ Here is the call graph for this function:

Member Data Documentation

◆ _mainHandDamageSpellId

uint32 spell_sha_stormflurry::_mainHandDamageSpellId
private

Definition at line 2686 of file spell_shaman.cpp.

◆ _offHandDamageSpellId

uint32 spell_sha_stormflurry::_offHandDamageSpellId
private

Definition at line 2687 of file spell_shaman.cpp.

◆ _stormflurrySpellId

uint32 spell_sha_stormflurry::_stormflurrySpellId
private

Definition at line 2685 of file spell_shaman.cpp.


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