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

Private Member Functions

 PrepareSpellScript (spell_halion_summon_exit_portals)
 
void OnSummon (SpellEffIndex effIndex)
 
void Register () override
 

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
 
Unit * GetCaster ()
 
GameObject * GetGObjCaster ()
 
Unit * GetOriginalCaster ()
 
SpellInfo const * GetSpellInfo ()
 
SpellValue const * GetSpellValue ()
 
WorldLocation const * GetExplTargetDest ()
 
void SetExplTargetDest (WorldLocation &loc)
 
WorldObject * GetExplTargetWorldObject ()
 
Unit * GetExplTargetUnit ()
 
GameObject * GetExplTargetGObj ()
 
Item * GetExplTargetItem ()
 
Unit * GetHitUnit ()
 
Creature * GetHitCreature ()
 
Player * GetHitPlayer ()
 
Item * GetHitItem ()
 
GameObject * GetHitGObj ()
 
WorldLocation * GetHitDest ()
 
int32 GetHitDamage ()
 
void SetHitDamage (int32 damage)
 
void PreventHitDamage ()
 
int32 GetHitHeal ()
 
void SetHitHeal (int32 heal)
 
void PreventHitHeal ()
 
Spell * GetSpell ()
 
Aura * GetHitAura ()
 
void PreventHitAura ()
 
void PreventHitEffect (SpellEffIndex effIndex)
 
void PreventHitDefaultEffect (SpellEffIndex effIndex)
 
int32 GetEffectValue () const
 
void SetEffectValue (int32 value)
 
Item * GetCastItem ()
 
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 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< CastHandler > BeforeCast
 
HookList< CastHandler > OnCast
 
HookList< CastHandler > AfterCast
 
HookList< CheckCastHandler > OnCheckCast
 
HookList< EffectHandler > OnEffectLaunch
 
HookList< EffectHandler > OnEffectLaunchTarget
 
HookList< EffectHandler > OnEffectHit
 
HookList< EffectHandler > OnEffectHitTarget
 
HookList< BeforeHitHandler > BeforeHit
 
HookList< HitHandler > OnHit
 
HookList< HitHandler > AfterHit
 
HookList< ObjectAreaTargetSelectHandler > OnObjectAreaTargetSelect
 
HookList< ObjectTargetSelectHandler > OnObjectTargetSelect
 
HookList< DestinationTargetSelectHandler > OnDestinationTargetSelect
 
- Protected Attributes inherited from _SpellScript
uint8 m_currentScriptState
 
std::string const * m_scriptName
 
uint32 m_scriptSpellId
 

Detailed Description

Member Function Documentation

◆ OnSummon()

void spell_halion_summon_exit_portals::OnSummon ( SpellEffIndex  effIndex)
inlineprivate
1218 {
1219 WorldLocation summonPos = *GetExplTargetDest();
1220 Position offset = {0.0f, 0.0f, 0.0f, 0.0f};
1222 offset.m_positionY = effIndex == EFFECT_1 ? -35.0f : 35.0f;
1223 else
1224 offset.m_positionX = effIndex == EFFECT_1 ? -35.0f : 35.0f;
1225
1226 summonPos.RelocateOffset(offset);
1227
1228 SetExplTargetDest(summonPos);
1229 GetHitDest()->RelocateOffset(offset);
1230 }
@ EFFECT_1
Definition SharedDefines.h:32
@ SPELL_SUMMON_EXIT_PORTALS
Definition boss_halion.cpp:117
WorldLocation const * GetExplTargetDest()
Definition SpellScript.cpp:421
void SetExplTargetDest(WorldLocation &loc)
Definition SpellScript.cpp:428
SpellInfo const * GetSpellInfo()
Definition SpellScript.cpp:416
WorldLocation * GetHitDest()
Definition SpellScript.cpp:509
Definition Position.h:256
Definition Position.h:27
float m_positionX
Definition Position.h:55
float m_positionY
Definition Position.h:56
void RelocateOffset(Position const &offset)
Definition Position.cpp:66

References EFFECT_1, SpellScript::GetExplTargetDest(), SpellScript::GetHitDest(), SpellScript::GetSpellInfo(), Position::m_positionX, Position::m_positionY, Position::RelocateOffset(), SpellScript::SetExplTargetDest(), and SPELL_SUMMON_EXIT_PORTALS.

Referenced by Register().

◆ PrepareSpellScript()

spell_halion_summon_exit_portals::PrepareSpellScript ( spell_halion_summon_exit_portals  )
private

◆ Register()

void spell_halion_summon_exit_portals::Register ( )
inlineoverrideprivatevirtual

Implements _SpellScript.

1233 {
1236 }
@ EFFECT_0
Definition SharedDefines.h:31
@ SPELL_EFFECT_SUMMON_OBJECT_WILD
Definition SharedDefines.h:842
#define SpellEffectFn(F, I, N)
Definition SpellScript.h:337
HookList< EffectHandler > OnEffectLaunch
Definition SpellScript.h:333
void OnSummon(SpellEffIndex effIndex)
Definition boss_halion.cpp:1217

References EFFECT_0, EFFECT_1, SpellScript::OnEffectLaunch, OnSummon(), SPELL_EFFECT_SUMMON_OBJECT_WILD, and SpellEffectFn.


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