AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
spell_mage_arcane_blast Class Reference
Inheritance diagram for spell_mage_arcane_blast:
SpellScript _SpellScript

Private Member Functions

 PrepareSpellScript (spell_mage_arcane_blast)
 
bool Load () override
 
void HandleTriggerSpell (SpellEffIndex effIndex)
 
void HandleAfterCast ()
 
void Register () override
 

Private Attributes

uint32 _triggerSpellId
 

Additional Inherited Members

- 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 const * GetSpellInfo ()
 
SpellValue const * GetSpellValue ()
 
WorldLocation const * GetExplTargetDest ()
 
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)
 
int32 GetEffectValue () const
 
void SetEffectValue (int32 value)
 
ItemGetCastItem ()
 
void CreateItem (uint32 effIndex, uint32 itemId)
 
SpellInfo const * GetTriggeringSpell ()
 
void FinishCast (SpellCastResult result)
 
void Cancel ()
 
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 Register ()=0
 
virtual bool Validate (SpellInfo const *)
 
virtual bool Load ()
 
virtual void Unload ()
 
- Static Public Member Functions inherited from _SpellScript
static bool ValidateSpellInfo (std::initializer_list< uint32 > spellIds)
 
template<class T >
static bool ValidateSpellInfo (T const &spellIds)
 
- Public Attributes inherited from SpellScript
HookList< CastHandlerBeforeCast
 
HookList< CastHandlerOnCast
 
HookList< CastHandlerAfterCast
 
HookList< CheckCastHandlerOnCheckCast
 
HookList< EffectHandlerOnEffectLaunch
 
HookList< EffectHandlerOnEffectLaunchTarget
 
HookList< EffectHandlerOnEffectHit
 
HookList< EffectHandlerOnEffectHitTarget
 
HookList< BeforeHitHandlerBeforeHit
 
HookList< HitHandlerOnHit
 
HookList< HitHandlerAfterHit
 
HookList< ObjectAreaTargetSelectHandlerOnObjectAreaTargetSelect
 
HookList< ObjectTargetSelectHandlerOnObjectTargetSelect
 
HookList< DestinationTargetSelectHandlerOnDestinationTargetSelect
 
virtual bool _Validate (SpellInfo const *entry)
 
- Protected Attributes inherited from _SpellScript
uint8 m_currentScriptState
 
std::string const * m_scriptName
 
uint32 m_scriptSpellId
 

Detailed Description

Member Function Documentation

◆ HandleAfterCast()

void spell_mage_arcane_blast::HandleAfterCast ( )
inlineprivate
74 {
76 }
@ TRIGGERED_FULL_MASK
Will return SPELL_FAILED_DONT_REPORT in CheckCast functions.
Definition: SpellDefines.h:148
SpellCastResult CastSpell(SpellCastTargets const &targets, SpellInfo const *spellInfo, CustomSpellValues const *value, TriggerCastFlags triggerFlags=TRIGGERED_NONE, Item *castItem=nullptr, AuraEffect const *triggeredByAura=nullptr, ObjectGuid originalCaster=ObjectGuid::Empty)
Definition: Unit.cpp:1168
Unit * GetCaster()
Definition: SpellScript.cpp:401
uint32 _triggerSpellId
Definition: spell_mage.cpp:86

References _triggerSpellId, Unit::CastSpell(), SpellScript::GetCaster(), and TRIGGERED_FULL_MASK.

Referenced by Register().

◆ HandleTriggerSpell()

void spell_mage_arcane_blast::HandleTriggerSpell ( SpellEffIndex  effIndex)
inlineprivate
68 {
69 _triggerSpellId = GetSpellInfo()->Effects[effIndex].TriggerSpell;
71 }
std::array< SpellEffectInfo, MAX_SPELL_EFFECTS > Effects
Definition: SpellInfo.h:393
SpellInfo const * GetSpellInfo()
Definition: SpellScript.cpp:411
void PreventHitDefaultEffect(SpellEffIndex effIndex)
Definition: SpellScript.cpp:590

References _triggerSpellId, SpellInfo::Effects, SpellScript::GetSpellInfo(), and SpellScript::PreventHitDefaultEffect().

Referenced by Register().

◆ Load()

bool spell_mage_arcane_blast::Load ( )
inlineoverrideprivatevirtual

Reimplemented from _SpellScript.

65{ _triggerSpellId = 0; return true; }

References _triggerSpellId.

◆ PrepareSpellScript()

spell_mage_arcane_blast::PrepareSpellScript ( spell_mage_arcane_blast  )
private

◆ Register()

void spell_mage_arcane_blast::Register ( )
inlineoverrideprivatevirtual

Implements _SpellScript.

79 {
83 }
#define SpellEffectFn(F, I, N)
Definition: SpellScript.h:337
#define SpellCastFn(F)
Definition: SpellScript.h:324
@ EFFECT_1
Definition: SharedDefines.h:32
@ SPELL_EFFECT_TRIGGER_SPELL
Definition: SharedDefines.h:842
HookList< CastHandler > AfterCast
Definition: SpellScript.h:323
HookList< EffectHandler > OnEffectLaunchTarget
Definition: SpellScript.h:334
HookList< EffectHandler > OnEffectLaunch
Definition: SpellScript.h:333
void HandleTriggerSpell(SpellEffIndex effIndex)
Definition: spell_mage.cpp:67
void HandleAfterCast()
Definition: spell_mage.cpp:73

References SpellScript::AfterCast, EFFECT_1, HandleAfterCast(), HandleTriggerSpell(), SpellScript::OnEffectLaunch, SpellScript::OnEffectLaunchTarget, SPELL_EFFECT_TRIGGER_SPELL, SpellCastFn, and SpellEffectFn.

Member Data Documentation

◆ _triggerSpellId

uint32 spell_mage_arcane_blast::_triggerSpellId
private