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

Private Member Functions

 PrepareSpellScript (spell_the_lich_king_defile)
 
bool Validate (SpellInfo const *) override
 
void CorrectRange (std::list< WorldObject * > &targets)
 
void ChangeDamageAndGrow ()
 
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 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

◆ ChangeDamageAndGrow()

void spell_the_lich_king_defile::ChangeDamageAndGrow ( )
inlineprivate
2363 {
2365 // HACK: target player should cast this spell on defile
2366 // however with current aura handling auras cast by different units
2367 // cannot stack on the same aura object increasing the stack count
2369 }
std::int32_t int32
Definition Define.h:103
@ OBJECT_FIELD_SCALE_X
Definition UpdateFields.h:28
@ SPELL_DEFILE_GROW
Definition boss_the_lich_king.cpp:140
void SetHitDamage(int32 damage)
Definition SpellScript.cpp:529
Unit * GetCaster()
Definition SpellScript.cpp:401
int32 GetHitDamage()
Definition SpellScript.cpp:519
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:1372

References Unit::CastSpell(), SpellScript::GetCaster(), SpellScript::GetHitDamage(), OBJECT_FIELD_SCALE_X, SpellScript::SetHitDamage(), and SPELL_DEFILE_GROW.

Referenced by Register().

◆ CorrectRange()

void spell_the_lich_king_defile::CorrectRange ( std::list< WorldObject * > &  targets)
inlineprivate
2356 {
2357 targets.remove_if(VehicleCheck());
2358 targets.remove_if(Acore::AllWorldObjectsInExactRange(GetCaster(), 10.0f * GetCaster()->GetFloatValue(OBJECT_FIELD_SCALE_X), true));
2359 targets.remove_if(Acore::UnitAuraCheck(true, sSpellMgr->GetSpellIdForDifficulty(SPELL_HARVEST_SOUL, GetCaster())));
2360 }
#define sSpellMgr
Definition SpellMgr.h:847
@ SPELL_HARVEST_SOUL
Definition boss_the_lich_king.cpp:159
Definition GridNotifiers.h:1709
Definition GridNotifiers.h:1689
Definition boss_the_lich_king.cpp:2338

References SpellScript::GetCaster(), OBJECT_FIELD_SCALE_X, SPELL_HARVEST_SOUL, and sSpellMgr.

Referenced by Register().

◆ PrepareSpellScript()

spell_the_lich_king_defile::PrepareSpellScript ( spell_the_lich_king_defile  )
private

◆ Register()

void spell_the_lich_king_defile::Register ( )
inlineoverrideprivatevirtual

Implements _SpellScript.

2372 {
2376 }
@ EFFECT_1
Definition SharedDefines.h:32
@ EFFECT_0
Definition SharedDefines.h:31
@ TARGET_UNIT_SRC_AREA_ENEMY
Definition SharedDefines.h:1424
#define SpellObjectAreaTargetSelectFn(F, I, N)
Definition SpellScript.h:354
#define SpellHitFn(F)
Definition SpellScript.h:349
HookList< HitHandler > OnHit
Definition SpellScript.h:345
HookList< ObjectAreaTargetSelectHandler > OnObjectAreaTargetSelect
Definition SpellScript.h:353
void ChangeDamageAndGrow()
Definition boss_the_lich_king.cpp:2362
void CorrectRange(std::list< WorldObject * > &targets)
Definition boss_the_lich_king.cpp:2355

References ChangeDamageAndGrow(), CorrectRange(), EFFECT_0, EFFECT_1, SpellScript::OnHit, SpellScript::OnObjectAreaTargetSelect, SpellHitFn, SpellObjectAreaTargetSelectFn, and TARGET_UNIT_SRC_AREA_ENEMY.

◆ Validate()

bool spell_the_lich_king_defile::Validate ( SpellInfo const *  )
inlineoverrideprivatevirtual

Reimplemented from _SpellScript.

2351 {
2353 }
static bool ValidateSpellInfo(std::initializer_list< uint32 > spellIds)
Definition SpellScript.h:125

References SPELL_DEFILE_GROW, and _SpellScript::ValidateSpellInfo().


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