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

Private Member Functions

SpellCastResult CheckCast ()
void HandleTriggerSpellHit (SpellEffIndex effIndex)
void HandleTriggerSpellLaunch (SpellEffIndex effIndex)
 PrepareSpellScript (spell_pal_righteous_defense_SpellScript)
void Register () override
bool Validate (SpellInfo const *) override

Additional Inherited Members

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 ()
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 741 of file spell_paladin.cpp.

Member Function Documentation

◆ CheckCast()

SpellCastResult spell_pal_righteous_defense::spell_pal_righteous_defense_SpellScript::CheckCast ( )
inlineprivate

◆ HandleTriggerSpellHit()

void spell_pal_righteous_defense::spell_pal_righteous_defense_SpellScript::HandleTriggerSpellHit ( SpellEffIndex effIndex)
inlineprivate

◆ HandleTriggerSpellLaunch()

void spell_pal_righteous_defense::spell_pal_righteous_defense_SpellScript::HandleTriggerSpellLaunch ( SpellEffIndex effIndex)
inlineprivate

Definition at line 769 of file spell_paladin.cpp.

References SpellScript::PreventHitDefaultEffect().

Referenced by Register().

◆ PrepareSpellScript()

spell_pal_righteous_defense::spell_pal_righteous_defense_SpellScript::PrepareSpellScript ( spell_pal_righteous_defense_SpellScript )
private

◆ Register()

void spell_pal_righteous_defense::spell_pal_righteous_defense_SpellScript::Register ( )
inlineoverrideprivatevirtual

WORKAROUND target select will be executed in hitphase of effect 0 so we must handle trigger spell also in hit phase (default execution in launch phase) see issue #3718

Implements _SpellScript.

Definition at line 781 of file spell_paladin.cpp.

References CheckCast(), EFFECT_1, HandleTriggerSpellHit(), HandleTriggerSpellLaunch(), SpellScript::OnCheckCast, SpellScript::OnEffectHitTarget, SpellScript::OnEffectLaunchTarget, SPELL_EFFECT_TRIGGER_SPELL, SpellCheckCastFn, and SpellEffectFn.

◆ Validate()

bool spell_pal_righteous_defense::spell_pal_righteous_defense_SpellScript::Validate ( SpellInfo const * )
inlineoverrideprivatevirtual

Reimplemented from _SpellScript.

Definition at line 745 of file spell_paladin.cpp.

References SPELL_PALADIN_RIGHTEOUS_DEFENSE_TAUNT, and sSpellMgr.


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