TrinityCore
Loading...
Searching...
No Matches
spell_marrowgar_bone_slice Class Reference
+ Inheritance diagram for spell_marrowgar_bone_slice:

Public Member Functions

 spell_marrowgar_bone_slice ()
 
- Public Member Functions inherited from SpellScript
 SpellScript ()
 
 ~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 IsAfterTargetSelectionPhase () const
 
bool IsInTargetHook () const
 
bool IsInModifiableHook () const
 
bool IsInHitPhase () const
 
bool IsInEffectHook () const
 
Unit * GetCaster () const
 
GameObject * GetGObjCaster () const
 
Unit * GetOriginalCaster () const
 
SpellInfo const * GetSpellInfo () const
 
SpellEffectInfo const & GetEffectInfo (SpellEffIndex effIndex) const
 
SpellValue const * GetSpellValue () const
 
WorldLocation const * GetExplTargetDest () const
 
void SetExplTargetDest (WorldLocation &loc)
 
WorldObject * GetExplTargetWorldObject () const
 
Unit * GetExplTargetUnit () const
 
GameObject * GetExplTargetGObj () const
 
Item * GetExplTargetItem () const
 
int64 GetUnitTargetCountForEffect (SpellEffIndex effect) const
 
int64 GetGameObjectTargetCountForEffect (SpellEffIndex effect) const
 
int64 GetItemTargetCountForEffect (SpellEffIndex effect) const
 
Unit * GetHitUnit () const
 
Creature * GetHitCreature () const
 
Player * GetHitPlayer () const
 
Item * GetHitItem () const
 
GameObject * GetHitGObj () const
 
Corpse * GetHitCorpse () const
 
WorldLocation * GetHitDest () const
 
int32 GetHitDamage () const
 
void SetHitDamage (int32 damage)
 
void PreventHitDamage ()
 
int32 GetHitHeal () const
 
void SetHitHeal (int32 heal)
 
void PreventHitHeal ()
 
Spell * GetSpell () const
 
Aura * GetHitAura (bool dynObjAura=false) const
 
void PreventHitAura ()
 
void PreventHitEffect (SpellEffIndex effIndex)
 
void PreventHitDefaultEffect (SpellEffIndex effIndex)
 
SpellEffectInfo const & GetEffectInfo () const
 
int32 GetEffectValue () const
 
void SetEffectValue (int32 value)
 
Item * GetCastItem () const
 
void CreateItem (uint32 itemId)
 
SpellInfo const * GetTriggeringSpell () const
 
void FinishCast (SpellCastResult result, uint32 *param1=nullptr, uint32 *param2=nullptr)
 
void SetCustomCastResultMessage (SpellCustomErrors result)
 
- Public Member Functions inherited from _SpellScript
 _SpellScript ()
 
virtual ~_SpellScript ()
 
void _Register ()
 
void _Unload ()
 
void _Init (std::string const *scriptname, uint32 spellId)
 
std::string const * _GetScriptName () const
 
virtual bool Validate (SpellInfo const *)
 
virtual bool Load ()
 
virtual void Unload ()
 

Private Member Functions

 PrepareSpellScript (spell_marrowgar_bone_slice)
 
void ClearSpikeImmunities ()
 
void CountTargets (std::list< WorldObject * > &targets)
 
void SplitDamage ()
 
void Register () override
 

Private Attributes

uint32 _targetCount
 

Additional Inherited Members

- 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< OnCalculateResistAbsorbHandler > OnCalculateResistAbsorb
 
HookList< EffectHandler > OnEffectLaunch
 
HookList< EffectHandler > OnEffectLaunchTarget
 
HookList< EffectHandler > OnEffectHit
 
HookList< EffectHandler > OnEffectHitTarget
 
HookList< EffectHandler > OnEffectSuccessfulDispel
 
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

Definition at line 639 of file boss_lord_marrowgar.cpp.

Constructor & Destructor Documentation

◆ spell_marrowgar_bone_slice()

spell_marrowgar_bone_slice::spell_marrowgar_bone_slice ( )
inline

Definition at line 644 of file boss_lord_marrowgar.cpp.

References _targetCount.

Member Function Documentation

◆ ClearSpikeImmunities()

void spell_marrowgar_bone_slice::ClearSpikeImmunities ( )
inlineprivate

◆ CountTargets()

void spell_marrowgar_bone_slice::CountTargets ( std::list< WorldObject * > &  targets)
inlineprivate

Definition at line 655 of file boss_lord_marrowgar.cpp.

References _targetCount, and SpellScript::GetSpellInfo().

Referenced by Register().

◆ PrepareSpellScript()

spell_marrowgar_bone_slice::PrepareSpellScript ( spell_marrowgar_bone_slice  )
private

◆ Register()

◆ SplitDamage()

void spell_marrowgar_bone_slice::SplitDamage ( )
inlineprivate

Member Data Documentation

◆ _targetCount

uint32 spell_marrowgar_bone_slice::_targetCount
private

Definition at line 678 of file boss_lord_marrowgar.cpp.

Referenced by CountTargets(), spell_marrowgar_bone_slice(), and SplitDamage().


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