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

Private Member Functions

 PrepareSpellScript (spell_sindragosa_ice_tomb_trap)
 
bool Validate (SpellInfo const *) override
 
void FilterTargets (std::list< WorldObject * > &unitList)
 
void FilterTargetsSubseq (std::list< WorldObject * > &unitList)
 
void Register () override
 

Private Attributes

std::list< WorldObject * > _targetList
 

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

◆ FilterTargets()

void spell_sindragosa_ice_tomb_trap::FilterTargets ( std::list< WorldObject * > &  unitList)
inlineprivate
1045 {
1046 unitList.remove_if(Acore::UnitAuraCheck(true, GetSpellInfo()->Id));
1047 _targetList.clear();
1048 _targetList = unitList;
1049 }
Definition: GridNotifiers.h:1627
SpellInfo const * GetSpellInfo()
Definition: SpellScript.cpp:411
std::list< WorldObject * > _targetList
Definition: boss_sindragosa.cpp:1064

References _targetList, and SpellScript::GetSpellInfo().

Referenced by Register().

◆ FilterTargetsSubseq()

void spell_sindragosa_ice_tomb_trap::FilterTargetsSubseq ( std::list< WorldObject * > &  unitList)
inlineprivate
1052 {
1053 unitList.clear();
1054 unitList = _targetList;
1055 }

References _targetList.

Referenced by Register().

◆ PrepareSpellScript()

spell_sindragosa_ice_tomb_trap::PrepareSpellScript ( spell_sindragosa_ice_tomb_trap  )
private

◆ Register()

void spell_sindragosa_ice_tomb_trap::Register ( )
inlineoverrideprivatevirtual

Implements _SpellScript.

1058 {
1061 }
@ EFFECT_1
Definition: SharedDefines.h:32
@ EFFECT_2
Definition: SharedDefines.h:33
@ TARGET_UNIT_DEST_AREA_ENEMY
Definition: SharedDefines.h:1421
#define SpellObjectAreaTargetSelectFn(F, I, N)
Definition: SpellScript.h:354
HookList< ObjectAreaTargetSelectHandler > OnObjectAreaTargetSelect
Definition: SpellScript.h:353
void FilterTargetsSubseq(std::list< WorldObject * > &unitList)
Definition: boss_sindragosa.cpp:1051
void FilterTargets(std::list< WorldObject * > &unitList)
Definition: boss_sindragosa.cpp:1044

References EFFECT_1, EFFECT_2, FilterTargets(), FilterTargetsSubseq(), SpellScript::OnObjectAreaTargetSelect, SpellObjectAreaTargetSelectFn, and TARGET_UNIT_DEST_AREA_ENEMY.

◆ Validate()

bool spell_sindragosa_ice_tomb_trap::Validate ( SpellInfo const *  )
inlineoverrideprivatevirtual

Reimplemented from _SpellScript.

1036 {
1037 if (!sObjectMgr->GetCreatureTemplate(NPC_ICE_TOMB))
1038 return false;
1039 if (!sObjectMgr->GetGameObjectTemplate(GO_ICE_BLOCK))
1040 return false;
1041 return true;
1042 }
@ NPC_ICE_TOMB
Definition: icecrown_citadel.h:332
@ GO_ICE_BLOCK
Definition: icecrown_citadel.h:460
#define sObjectMgr
Definition: ObjectMgr.h:1635

References GO_ICE_BLOCK, NPC_ICE_TOMB, and sObjectMgr.

Member Data Documentation

◆ _targetList

std::list<WorldObject*> spell_sindragosa_ice_tomb_trap::_targetList
private