AzeorthCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
spell_algalon_big_bang::spell_algalon_big_bang_SpellScript Class Reference
Inheritance diagram for spell_algalon_big_bang::spell_algalon_big_bang_SpellScript:
SpellScript _SpellScript

Private Member Functions

 PrepareSpellScript (spell_algalon_big_bang_SpellScript)
 
bool Load () override
 
void CountTargets (std::list< WorldObject * > &targets)
 
void CheckTargets ()
 
void Register () override
 

Private Attributes

uint32 _targetCount
 

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

◆ CheckTargets()

void spell_algalon_big_bang::spell_algalon_big_bang_SpellScript::CheckTargets ( )
inlineprivate
1342 {
1343 Unit* caster = GetCaster();
1344 if (!_targetCount && caster && caster->GetAI())
1345 caster->GetAI()->DoAction(ACTION_ASCEND);
1346 }
@ ACTION_ASCEND
Definition: boss_algalon_the_observer.cpp:83
virtual void DoAction(int32)
Definition: UnitAI.h:196
Definition: Unit.h:1290
UnitAI * GetAI()
Definition: Unit.h:1316
Unit * GetCaster()
Definition: SpellScript.cpp:401
uint32 _targetCount
Definition: boss_algalon_the_observer.cpp:1354

References _targetCount, ACTION_ASCEND, UnitAI::DoAction(), Unit::GetAI(), and SpellScript::GetCaster().

Referenced by Register().

◆ CountTargets()

void spell_algalon_big_bang::spell_algalon_big_bang_SpellScript::CountTargets ( std::list< WorldObject * > &  targets)
inlineprivate
1337 {
1338 _targetCount = targets.size();
1339 }

References _targetCount.

Referenced by Register().

◆ Load()

bool spell_algalon_big_bang::spell_algalon_big_bang_SpellScript::Load ( )
inlineoverrideprivatevirtual

Reimplemented from _SpellScript.

1331 {
1332 _targetCount = 0;
1333 return true;
1334 }

References _targetCount.

◆ PrepareSpellScript()

spell_algalon_big_bang::spell_algalon_big_bang_SpellScript::PrepareSpellScript ( spell_algalon_big_bang_SpellScript  )
private

◆ Register()

void spell_algalon_big_bang::spell_algalon_big_bang_SpellScript::Register ( )
inlineoverrideprivatevirtual

Implements _SpellScript.

1349 {
1352 }
#define SpellObjectAreaTargetSelectFn(F, I, N)
Definition: SpellScript.h:354
#define SpellCastFn(F)
Definition: SpellScript.h:324
@ EFFECT_0
Definition: SharedDefines.h:30
@ TARGET_UNIT_SRC_AREA_ENEMY
Definition: SharedDefines.h:1392
HookList< CastHandler > AfterCast
Definition: SpellScript.h:323
HookList< ObjectAreaTargetSelectHandler > OnObjectAreaTargetSelect
Definition: SpellScript.h:353
void CheckTargets()
Definition: boss_algalon_the_observer.cpp:1341
void CountTargets(std::list< WorldObject * > &targets)
Definition: boss_algalon_the_observer.cpp:1336

References SpellScript::AfterCast, CheckTargets(), CountTargets(), EFFECT_0, SpellScript::OnObjectAreaTargetSelect, SpellCastFn, SpellObjectAreaTargetSelectFn, and TARGET_UNIT_SRC_AREA_ENEMY.

Member Data Documentation

◆ _targetCount

uint32 spell_algalon_big_bang::spell_algalon_big_bang_SpellScript::_targetCount
private

Referenced by CheckTargets(), CountTargets(), and Load().