Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
spell_item_defibrillate::spell_item_defibrillate_SpellScript Class Reference
Inheritance diagram for spell_item_defibrillate::spell_item_defibrillate_SpellScript:
Collaboration diagram for spell_item_defibrillate::spell_item_defibrillate_SpellScript:

Public Member Functions

void HandleScript (SpellEffIndex effIndex)
void Register () OVERRIDE
 spell_item_defibrillate_SpellScript (uint8 chance, uint32 failSpell)
bool Validate (SpellInfo const *) OVERRIDE
Public Member Functions inherited from SpellScript
void _FinishScriptCall ()
void _InitHit ()
bool _IsDefaultEffectPrevented (SpellEffIndex effIndex) const
bool _IsEffectPrevented (SpellEffIndex effIndex) const
bool _Load (Spell *spell)
void _PrepareScriptCall (SpellScriptHookType hookType)
bool _Validate (SpellInfo const *entry)
void CreateItem (uint32 effIndex, uint32 itemId)
void FinishCast (SpellCastResult result)
UnitGetCaster ()
ItemGetCastItem ()
int32 GetEffectValue ()
WorldLocation const * GetExplTargetDest ()
GameObjectGetExplTargetGObj ()
ItemGetExplTargetItem ()
UnitGetExplTargetUnit ()
WorldObjectGetExplTargetWorldObject ()
AuraGetHitAura ()
CreatureGetHitCreature ()
int32 GetHitDamage ()
WorldLocationGetHitDest ()
GameObjectGetHitGObj ()
int32 GetHitHeal ()
ItemGetHitItem ()
PlayerGetHitPlayer ()
UnitGetHitUnit ()
UnitGetOriginalCaster ()
SpellGetSpell ()
SpellInfo const * GetSpellInfo ()
SpellValue const * GetSpellValue ()
SpellInfo const * GetTriggeringSpell ()
bool IsInCheckCastHook () const
bool IsInEffectHook () const
bool IsInHitPhase () const
bool IsInTargetHook () const
void PreventHitAura ()
void PreventHitDamage ()
void PreventHitDefaultEffect (SpellEffIndex effIndex)
void PreventHitEffect (SpellEffIndex effIndex)
void PreventHitHeal ()
void SetCustomCastResultMessage (SpellCustomErrors result)
void SetExplTargetDest (WorldLocation &loc)
void SetHitDamage (int32 damage)
void SetHitHeal (int32 heal)
Public Member Functions inherited from _SpellScript
std::string const * _GetScriptName () const
virtual void _Init (std::string const *scriptname, uint32 spellId)
virtual void _Register ()
 _SpellScript ()
virtual void _Unload ()
virtual bool Load ()
virtual void Unload ()
virtual ~_SpellScript ()

Private Member Functions

 PrepareSpellScript (spell_item_defibrillate_SpellScript)

Private Attributes

uint8 _chance
uint32 _failSpell

Additional Inherited Members

Public Attributes inherited from SpellScript
HookList< CastHandlerAfterCast
HookList< HitHandlerAfterHit
HookList< CastHandlerBeforeCast
HookList< HitHandlerBeforeHit
HookList< CastHandlerOnCast
HookList< CheckCastHandlerOnCheckCast
HookList< EffectHandlerOnEffectHit
HookList< EffectHandlerOnEffectHitTarget
HookList< EffectHandlerOnEffectLaunch
HookList< EffectHandlerOnEffectLaunchTarget
HookList< HitHandlerOnHit
HookList< ObjectAreaTargetSelectHandlerOnObjectAreaTargetSelect
HookList< ObjectTargetSelectHandlerOnObjectTargetSelect
Protected Attributes inherited from _SpellScript
uint8 m_currentScriptState
std::string const * m_scriptName
uint32 m_scriptSpellId

Detailed Description

Definition at line 204 of file spell_item.cpp.

Constructor & Destructor Documentation

◆ spell_item_defibrillate_SpellScript()

spell_item_defibrillate::spell_item_defibrillate_SpellScript::spell_item_defibrillate_SpellScript ( uint8 chance,
uint32 failSpell )
inline

Definition at line 209 of file spell_item.cpp.

References _chance, and _failSpell.

Referenced by PrepareSpellScript().

Member Function Documentation

◆ HandleScript()

void spell_item_defibrillate::spell_item_defibrillate_SpellScript::HandleScript ( SpellEffIndex effIndex)
inline

◆ PrepareSpellScript()

spell_item_defibrillate::spell_item_defibrillate_SpellScript::PrepareSpellScript ( spell_item_defibrillate_SpellScript )
private

◆ Register()

void spell_item_defibrillate::spell_item_defibrillate_SpellScript::Register ( )
inlinevirtual

◆ Validate()

bool spell_item_defibrillate::spell_item_defibrillate_SpellScript::Validate ( SpellInfo const * )
inlinevirtual

Reimplemented from _SpellScript.

Definition at line 211 of file spell_item.cpp.

References _failSpell, OVERRIDE, and sSpellMgr.

Member Data Documentation

◆ _chance

uint8 spell_item_defibrillate::spell_item_defibrillate_SpellScript::_chance
private

Definition at line 234 of file spell_item.cpp.

Referenced by HandleScript(), and spell_item_defibrillate_SpellScript().

◆ _failSpell

uint32 spell_item_defibrillate::spell_item_defibrillate_SpellScript::_failSpell
private

Definition at line 235 of file spell_item.cpp.

Referenced by HandleScript(), spell_item_defibrillate_SpellScript(), and Validate().


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