TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
spell_igb_check_for_players::spell_igb_check_for_players_SpellScript Class Reference

Public Member Functions

 spell_igb_check_for_players_SpellScript ()
 
- 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 constGetSpellInfo ()
 
SpellValue constGetSpellValue ()
 
SpellEffectInfo constGetEffectInfo (SpellEffIndex) const
 
WorldLocation constGetExplTargetDest ()
 
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)
 
SpellEffectInfo constGetEffectInfo () const
 
int32 GetEffectValue () const
 
void SetEffectValue (int32 value)
 
ItemGetCastItem ()
 
void CreateItem (uint32 effIndex, uint32 itemId)
 
SpellInfo constGetTriggeringSpell ()
 
void FinishCast (SpellCastResult result)
 
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 void Unload ()
 

Private Member Functions

 PrepareSpellScript (spell_igb_check_for_players_SpellScript)
 
bool Load () override
 
void CountTargets (std::list< WorldObject * > &targets)
 
void TriggerWipe ()
 
void TeleportPlayer (SpellEffIndex)
 
void Register () override
 

Private Attributes

uint32 _playerCount
 

Additional Inherited Members

- Public Attributes inherited from SpellScript
HookList< CastHandlerBeforeCast
 
HookList< CastHandlerOnCast
 
HookList< CastHandlerAfterCast
 
HookList< CheckCastHandlerOnCheckCast
 
HookList< EffectHandlerOnEffectLaunch
 
HookList< EffectHandlerOnEffectLaunchTarget
 
HookList< EffectHandlerOnEffectHit
 
HookList< EffectHandlerOnEffectHitTarget
 
HookList< EffectHandlerOnEffectSuccessfulDispel
 
HookList< HitHandlerBeforeHit
 
HookList< HitHandlerOnHit
 
HookList< HitHandlerAfterHit
 
HookList
< ObjectAreaTargetSelectHandler
OnObjectAreaTargetSelect
 
HookList
< ObjectTargetSelectHandler
OnObjectTargetSelect
 
HookList
< DestinationTargetSelectHandler
OnDestinationTargetSelect
 
- Protected Attributes inherited from _SpellScript
uint8 m_currentScriptState
 
std::string constm_scriptName
 
uint32 m_scriptSpellId
 

Constructor & Destructor Documentation

spell_igb_check_for_players::spell_igb_check_for_players_SpellScript::spell_igb_check_for_players_SpellScript ( )
inline
2381  {
2382  _playerCount = 0;
2383  }
uint32 _playerCount
Definition: boss_icecrown_gunship_battle.cpp:2415

Member Function Documentation

void spell_igb_check_for_players::spell_igb_check_for_players_SpellScript::CountTargets ( std::list< WorldObject * > &  targets)
inlineprivate
2392  {
2393  _playerCount = targets.size();
2394  }
uint32 _playerCount
Definition: boss_icecrown_gunship_battle.cpp:2415

+ Here is the caller graph for this function:

bool spell_igb_check_for_players::spell_igb_check_for_players_SpellScript::Load ( )
inlineoverrideprivatevirtual

Reimplemented from _SpellScript.

2387  {
2388  return GetCaster()->GetTypeId() == TYPEID_UNIT;
2389  }
Definition: ObjectGuid.h:32
TypeID GetTypeId() const
Definition: Object.h:113
Unit * GetCaster()
Definition: SpellScript.cpp:394

+ Here is the call graph for this function:

spell_igb_check_for_players::spell_igb_check_for_players_SpellScript::PrepareSpellScript ( spell_igb_check_for_players_SpellScript  )
private
void spell_igb_check_for_players::spell_igb_check_for_players_SpellScript::Register ( )
inlineoverrideprivatevirtual

Implements _SpellScript.

2409  {
2413  }
Definition: SharedDefines.h:1881
HookList< ObjectAreaTargetSelectHandler > OnObjectAreaTargetSelect
Definition: SpellScript.h:310
void CountTargets(std::list< WorldObject * > &targets)
Definition: boss_icecrown_gunship_battle.cpp:2391
Definition: SharedDefines.h:28
#define SpellCastFn(F)
Definition: SpellScript.h:283
#define SpellObjectAreaTargetSelectFn(F, I, N)
Definition: SpellScript.h:311
#define SpellEffectFn(F, I, N)
Definition: SpellScript.h:297
HookList< CastHandler > AfterCast
Definition: SpellScript.h:282
HookList< EffectHandler > OnEffectHitTarget
Definition: SpellScript.h:295
void TeleportPlayer(SpellEffIndex)
Definition: boss_icecrown_gunship_battle.cpp:2402
Definition: SharedDefines.h:1013
void TriggerWipe()
Definition: boss_icecrown_gunship_battle.cpp:2396

+ Here is the call graph for this function:

void spell_igb_check_for_players::spell_igb_check_for_players_SpellScript::TeleportPlayer ( SpellEffIndex  )
inlineprivate
2403  {
2404  if (GetHitUnit()->GetPositionZ() < GetCaster()->GetPositionZ() - 10.0f)
2406  }
Definition: boss_icecrown_gunship_battle.cpp:115
Will ignore most target checks (mostly DBC target checks)
Definition: Unit.h:479
Unit * GetCaster()
Definition: SpellScript.cpp:394
Unit * GetHitUnit()
Definition: SpellScript.cpp:441
void CastSpell(SpellCastTargets const &targets, SpellInfo const *spellInfo, CustomSpellValues const *value, TriggerCastFlags triggerFlags=TRIGGERED_NONE, Item *castItem=NULL, AuraEffect const *triggeredByAura=NULL, ObjectGuid originalCaster=ObjectGuid::Empty)
Definition: Unit.cpp:869

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void spell_igb_check_for_players::spell_igb_check_for_players_SpellScript::TriggerWipe ( )
inlineprivate
2397  {
2398  if (!_playerCount)
2399  GetCaster()->ToCreature()->AI()->JustDied(NULL);
2400  }
arena_t NULL
Definition: jemalloc_internal.h:624
CreatureAI * AI() const
Definition: Creature.h:525
virtual void JustDied(Unit *)
Definition: CreatureAI.h:117
Unit * GetCaster()
Definition: SpellScript.cpp:394
Creature * ToCreature()
Definition: Object.h:194
uint32 _playerCount
Definition: boss_icecrown_gunship_battle.cpp:2415

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

uint32 spell_igb_check_for_players::spell_igb_check_for_players_SpellScript::_playerCount
private

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