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

Private Member Functions

 PrepareSpellScript (spell_midsummer_summon_ahune_lieutenant)
 
void HandleDummy (SpellEffIndex)
 
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

◆ HandleDummy()

void spell_midsummer_summon_ahune_lieutenant::HandleDummy ( SpellEffIndex  )
inlineprivate
1188 {
1189 Unit* caster = GetCaster();
1190 uint32 zoneId = caster->GetZoneId();
1191 uint32 npcEntry = 0;
1192
1193 switch (zoneId)
1194 {
1195 case AREA_ASHENVALE:
1196 npcEntry = 26116; // Frostwave Lieutenant
1197 break;
1198 case AREA_DESOLACE:
1199 npcEntry = 26178; // Hailstone Lieutenant
1200 break;
1202 npcEntry = 26204; // Chillwind Lieutenant
1203 break;
1204 case AREA_SEARING_GORGE:
1205 npcEntry = 26214; // Frigid Lieutenant
1206 break;
1207 case AREA_SILITHUS:
1208 npcEntry = 26215; // Glacial Lieutenant
1209 break;
1211 npcEntry = 26216; // Glacial Templar
1212 break;
1213 }
1214
1215 if (npcEntry)
1217 }
@ AREA_STRANGLETHORN_VALE
Definition AreaDefines.h:37
@ AREA_ASHENVALE
Definition AreaDefines.h:63
@ AREA_DESOLACE
Definition AreaDefines.h:71
@ AREA_SILITHUS
Definition AreaDefines.h:79
@ AREA_HELLFIRE_PENINSULA
Definition AreaDefines.h:98
@ AREA_SEARING_GORGE
Definition AreaDefines.h:44
constexpr auto IN_MILLISECONDS
Definition Common.h:53
constexpr auto MINUTE
Definition Common.h:47
std::uint32_t uint32
Definition Define.h:107
@ TEMPSUMMON_TIMED_OR_DEAD_DESPAWN
Definition Object.h:50
Unit * GetCaster()
Definition SpellScript.cpp:401
Definition Unit.h:667
TempSummon * SummonCreature(uint32 id, Position const &pos, TempSummonType spwtype=TEMPSUMMON_MANUAL_DESPAWN, uint32 despwtime=0, uint32 vehId=0, SummonPropertiesEntry const *properties=nullptr, bool visibleBySummonerOnly=false) const
Definition Object.cpp:2453
uint32 GetZoneId() const
Definition Object.cpp:3171
void GetPosition(float &x, float &y) const
Definition Position.h:126

References AREA_ASHENVALE, AREA_DESOLACE, AREA_HELLFIRE_PENINSULA, AREA_SEARING_GORGE, AREA_SILITHUS, AREA_STRANGLETHORN_VALE, SpellScript::GetCaster(), Position::GetPosition(), WorldObject::GetZoneId(), IN_MILLISECONDS, MINUTE, WorldObject::SummonCreature(), and TEMPSUMMON_TIMED_OR_DEAD_DESPAWN.

Referenced by Register().

◆ PrepareSpellScript()

spell_midsummer_summon_ahune_lieutenant::PrepareSpellScript ( spell_midsummer_summon_ahune_lieutenant  )
private

◆ Register()

void spell_midsummer_summon_ahune_lieutenant::Register ( )
inlineoverrideprivatevirtual

Implements _SpellScript.

1220 {
1222 }
@ EFFECT_1
Definition SharedDefines.h:32
@ SPELL_EFFECT_APPLY_AURA
Definition SharedDefines.h:772
#define SpellEffectFn(F, I, N)
Definition SpellScript.h:337
HookList< EffectHandler > OnEffectHit
Definition SpellScript.h:335
void HandleDummy(SpellEffIndex)
Definition midsummer.cpp:1187

References EFFECT_1, HandleDummy(), SpellScript::OnEffectHit, SPELL_EFFECT_APPLY_AURA, and SpellEffectFn.


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