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

Private Member Functions

void HandleBanish ()
bool Load () OVERRIDE
 PrepareSpellScript (spell_warl_banish_SpellScript)
void Register () OVERRIDE
void RemoveAura ()

Private Attributes

bool _removed

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 void Unload ()
virtual bool Validate (SpellInfo const *)
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 100 of file spell_warlock.cpp.

Member Function Documentation

◆ HandleBanish()

void spell_warl_banish::spell_warl_banish_SpellScript::HandleBanish ( )
inlineprivate

Casting Banish on a banished target will cancel the effect Check if the target already has Banish, if so, do nothing.

Definition at line 110 of file spell_warlock.cpp.

References _removed, EFFECT_0, EFFECT_1, EFFECT_2, SpellScript::GetHitUnit(), SpellScript::PreventHitDefaultEffect(), SPELL_AURA_SCHOOL_IMMUNITY, and SPELLFAMILY_WARLOCK.

Referenced by Register().

◆ Load()

bool spell_warl_banish::spell_warl_banish_SpellScript::Load ( )
inlineprivatevirtual

Reimplemented from _SpellScript.

Definition at line 104 of file spell_warlock.cpp.

References _removed, and OVERRIDE.

◆ PrepareSpellScript()

spell_warl_banish::spell_warl_banish_SpellScript::PrepareSpellScript ( spell_warl_banish_SpellScript )
private

◆ Register()

void spell_warl_banish::spell_warl_banish_SpellScript::Register ( )
inlineprivatevirtual

◆ RemoveAura()

void spell_warl_banish::spell_warl_banish_SpellScript::RemoveAura ( )
inlineprivate

Definition at line 127 of file spell_warlock.cpp.

References _removed, and SpellScript::PreventHitAura().

Referenced by Register().

Member Data Documentation

◆ _removed

bool spell_warl_banish::spell_warl_banish_SpellScript::_removed
private

Definition at line 139 of file spell_warlock.cpp.

Referenced by HandleBanish(), Load(), and RemoveAura().


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