TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
spell_pal_divine_storm::spell_pal_divine_storm_SpellScript Class Reference

Public Member Functions

 spell_pal_divine_storm_SpellScript ()
 
- Public Member Functions inherited from SpellScript
bool _Validate (SpellInfo const *entry) override
 
bool _Load (Spell *spell)
 
void _InitHit ()
 
bool _IsEffectPrevented (SpellEffIndex effIndex)
 
bool _IsDefaultEffectPrevented (SpellEffIndex effIndex)
 
void _PrepareScriptCall (SpellScriptHookType hookType)
 
void _FinishScriptCall ()
 
bool IsInCheckCastHook () const
 
bool IsInTargetHook () const
 
bool IsInHitPhase () const
 
bool IsInEffectHook () const
 
UnitGetCaster ()
 
UnitGetOriginalCaster ()
 
SpellInfo constGetSpellInfo ()
 
SpellValue constGetSpellValue ()
 
SpellEffectInfo constGetEffectInfo (SpellEffIndex) const
 
WorldLocation constGetExplTargetDest ()
 
void SetExplTargetDest (WorldLocation &loc)
 
WorldObjectGetExplTargetWorldObject ()
 
UnitGetExplTargetUnit ()
 
GameObjectGetExplTargetGObj ()
 
ItemGetExplTargetItem ()
 
UnitGetHitUnit ()
 
CreatureGetHitCreature ()
 
PlayerGetHitPlayer ()
 
ItemGetHitItem ()
 
GameObjectGetHitGObj ()
 
WorldLocationGetHitDest ()
 
int32 GetHitDamage ()
 
void SetHitDamage (int32 damage)
 
void PreventHitDamage ()
 
int32 GetHitHeal ()
 
void SetHitHeal (int32 heal)
 
void PreventHitHeal ()
 
SpellGetSpell ()
 
AuraGetHitAura ()
 
void PreventHitAura ()
 
void PreventHitEffect (SpellEffIndex effIndex)
 
void PreventHitDefaultEffect (SpellEffIndex effIndex)
 
SpellEffectInfo constGetEffectInfo () const
 
int32 GetEffectValue () const
 
void SetEffectValue (int32 value)
 
ItemGetCastItem ()
 
void CreateItem (uint32 effIndex, uint32 itemId)
 
SpellInfo constGetTriggeringSpell ()
 
void FinishCast (SpellCastResult result)
 
void SetCustomCastResultMessage (SpellCustomErrors result)
 
- Public Member Functions inherited from _SpellScript
 _SpellScript ()
 
virtual ~_SpellScript ()
 
virtual void _Register ()
 
virtual void _Unload ()
 
virtual void _Init (std::string const *scriptname, uint32 spellId)
 
std::string const_GetScriptName () const
 
virtual void Unload ()
 

Private Member Functions

 PrepareSpellScript (spell_pal_divine_storm_SpellScript)
 
bool Validate (SpellInfo const *) override
 
bool Load () override
 
void TriggerHeal ()
 
void Register () override
 

Private Attributes

uint32 healPct
 

Additional Inherited Members

- Public Attributes inherited from SpellScript
HookList< CastHandlerBeforeCast
 
HookList< CastHandlerOnCast
 
HookList< CastHandlerAfterCast
 
HookList< CheckCastHandlerOnCheckCast
 
HookList< EffectHandlerOnEffectLaunch
 
HookList< EffectHandlerOnEffectLaunchTarget
 
HookList< EffectHandlerOnEffectHit
 
HookList< EffectHandlerOnEffectHitTarget
 
HookList< EffectHandlerOnEffectSuccessfulDispel
 
HookList< HitHandlerBeforeHit
 
HookList< HitHandlerOnHit
 
HookList< HitHandlerAfterHit
 
HookList
< ObjectAreaTargetSelectHandler
OnObjectAreaTargetSelect
 
HookList
< ObjectTargetSelectHandler
OnObjectTargetSelect
 
HookList
< DestinationTargetSelectHandler
OnDestinationTargetSelect
 
- Protected Attributes inherited from _SpellScript
uint8 m_currentScriptState
 
std::string constm_scriptName
 
uint32 m_scriptSpellId
 

Constructor & Destructor Documentation

spell_pal_divine_storm::spell_pal_divine_storm_SpellScript::spell_pal_divine_storm_SpellScript ( )
inline
355  {
356  healPct = 0;
357  }
uint32 healPct
Definition: spell_paladin.cpp:360

Member Function Documentation

bool spell_pal_divine_storm::spell_pal_divine_storm_SpellScript::Load ( )
inlineoverrideprivatevirtual

Reimplemented from _SpellScript.

370  {
372  return true;
373  }
Definition: SharedDefines.h:29
SpellInfo const * GetSpellInfo()
Definition: SpellScript.cpp:404
SpellEffectInfo const * GetEffect(uint32 difficulty, uint32 index) const
Definition: SpellInfo.cpp:3348
int32 CalcValue(Unit const *caster=nullptr, int32 const *basePoints=nullptr, Unit const *target=nullptr, float *variance=nullptr, int32 itemLevel=-1) const
Definition: SpellInfo.cpp:455
Unit * GetCaster()
Definition: SpellScript.cpp:394
uint32 healPct
Definition: spell_paladin.cpp:360

+ Here is the call graph for this function:

spell_pal_divine_storm::spell_pal_divine_storm_SpellScript::PrepareSpellScript ( spell_pal_divine_storm_SpellScript  )
private
void spell_pal_divine_storm::spell_pal_divine_storm_SpellScript::Register ( )
inlineoverrideprivatevirtual

Implements _SpellScript.

382  {
384  }
#define SpellHitFn(F)
Definition: SpellScript.h:306
void TriggerHeal()
Definition: spell_paladin.cpp:375
HookList< HitHandler > AfterHit
Definition: SpellScript.h:304

+ Here is the call graph for this function:

void spell_pal_divine_storm::spell_pal_divine_storm_SpellScript::TriggerHeal ( )
inlineprivate
376  {
377  Unit* caster = GetCaster();
379  }
Definition: spell_paladin.cpp:45
Unit * GetCaster()
Definition: SpellScript.cpp:394
int32 GetHitDamage()
Definition: SpellScript.cpp:507
uint32 healPct
Definition: spell_paladin.cpp:360
Definition: Unit.h:1305
void CastCustomSpell(Unit *victim, uint32 spellId, int32 const *bp0, int32 const *bp1, int32 const *bp2, bool triggered, Item *castItem=NULL, AuraEffect const *triggeredByAura=NULL, ObjectGuid originalCaster=ObjectGuid::Empty)
Definition: Unit.cpp:920
Definition: Unit.h:129

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool spell_pal_divine_storm::spell_pal_divine_storm_SpellScript::Validate ( SpellInfo const )
inlineoverrideprivatevirtual

Reimplemented from _SpellScript.

363  {
364  if (!sSpellMgr->GetSpellInfo(SPELL_PALADIN_DIVINE_STORM_DUMMY))
365  return false;
366  return true;
367  }
#define sSpellMgr
Definition: SpellMgr.h:756
Definition: spell_paladin.cpp:45

Member Data Documentation

uint32 spell_pal_divine_storm::spell_pal_divine_storm_SpellScript::healPct
private

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